A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

.bat on taskbar?



 
 
Thread Tools Rate Thread Display Modes
  #16  
Old May 5th 18, 06:25 PM posted to alt.windows7.general
Char Jackson
external usenet poster
 
Posts: 10,449
Default .bat on taskbar?

On Sat, 5 May 2018 11:58:49 +0100, "J. P. Gilliver (John)"
wrote:

[]
I have two DOS/CMD prompts open at the moment. If I rt-click the
TaskBar button of either, I have the option "Pin this program to
taskbar"


That'll give you a pinned shortcut (is shortcut the right term?) to the
command prompt; I have one, whose Target line is
"%SystemRoot%\system32\cmd.exe" [without the ""]. It wouldn't give you s
shortcut to a batch file. However, maybe you could add the name of a
batch file _to_ its target line. [Maybe needing some "", perhaps even
nested.]

Incidentally, I found I had to right-click _twice_ to get to the Target
line: the first one just brings up a two-line menu, containing "Command
Prompt" and "Unpin this program from task bar". Right-clicking _on_ the
first one brings up another menu that includes Properties, which brings
up the normal properties of a shortcut. Checking with my other "pinned"
shortcuts (?), this seems to be how they all behave - some pop up
something with more than two lines (some of them adding sections
labelled Tasks or Frequent), but those two are always there at the
bottom, and Properties is never there until you do the next right-click
on the upper of the two. (I haven't "played" with pinned "shortcuts"
before; it seems they aren't _that_ different to normal ones though.)


Your newness to Win 7 is showing. :-) The second level of right-click
that applies to pinned taskbar items also applies to all running taskbar
items, pinned or not. It's a behavior change from how XP did it and is
something you just get used to after a while.


--

Char Jackson
Ads
  #17  
Old May 5th 18, 06:44 PM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default .bat on taskbar?

T wrote:

VanguardLH wrote:

T wrote:

Windows 7 Pro, SP1, 32 bit

I created a Perl6 program for a customer. I created a shortcut
to it on the desktop. But Windows won't allow me to to copy
it to the task bar as perl6 is a batch file.

Looking at google, the trick of creating
cmd /c perl6 program.pl6
on the desktop and dragging it to the task bar, did not
work either


Create a shortcut on the desktop that runs:

cmd.exe /c "perl6 program.pl6"


This the favorite on Google: I does not work for me.


I tried before posting before and just again. Works for me. I
right-click on the desktop, create a new shortcut, specify its Target
as:

cmd.exe /c "perl6 program.pl6"

(with the double-quotes), and name the shortcut. I don't have Perl
installed but shortcut creation doesn't check the program exists.

Now I have a shortcut on my desktop. I right-click on the shortcut
where is shown the option to "Pin to Taskbar". Alternatively I can drag
the shortcut to the taskbar whereupon a popup appears saying "Pin to
Taskbar".

After creating the shortcut on the desktop, is the "Pin to Taskbar"
context menu entry missing when you right-click on it? What happens
when you drag the shortcut to the taskbar?

As long as you can define a working shortcut, you should be able to pin
the shortcut to the taskbar. After creating the shortcut (and before
trying to pin it), does it work when you double-click on it?
  #18  
Old May 6th 18, 12:02 AM posted to alt.windows7.general
T
external usenet poster
 
Posts: 4,600
Default .bat on taskbar?

On 05/05/2018 07:45 AM, Java Jive wrote:
On 05/05/2018 13:31, T wrote:

On 05/05/2018 03:26 AM, Java Jive wrote:

I have two DOS/CMD prompts open at the moment.Â* If I rt-click the
TaskBar button of either, I have the option "Pin this program to
taskbar"


I can do the same.Â* I get blocked after I add anything to the
cmd.exe run line


One of my DOS Prompts already had stuff after the CMD to launch a *.BAT
file to initialise the environment, yet it still pins to the TaskBar,
and from there launches the DOS Prompt and initialises it correctly.


It really hates you renaming the icon
  #19  
Old May 6th 18, 12:04 AM posted to alt.windows7.general
T
external usenet poster
 
Posts: 4,600
Default .bat on taskbar?

On 05/05/2018 10:44 AM, VanguardLH wrote:
T wrote:

VanguardLH wrote:

T wrote:

Windows 7 Pro, SP1, 32 bit

I created a Perl6 program for a customer. I created a shortcut
to it on the desktop. But Windows won't allow me to to copy
it to the task bar as perl6 is a batch file.

Looking at google, the trick of creating
cmd /c perl6 program.pl6
on the desktop and dragging it to the task bar, did not
work either

Create a shortcut on the desktop that runs:

cmd.exe /c "perl6 program.pl6"


This the favorite on Google: I does not work for me.


I tried before posting before and just again. Works for me. I
right-click on the desktop, create a new shortcut, specify its Target
as:

cmd.exe /c "perl6 program.pl6"

(with the double-quotes), and name the shortcut. I don't have Perl
installed but shortcut creation doesn't check the program exists.

Now I have a shortcut on my desktop. I right-click on the shortcut
where is shown the option to "Pin to Taskbar". Alternatively I can drag
the shortcut to the taskbar whereupon a popup appears saying "Pin to
Taskbar".

After creating the shortcut on the desktop, is the "Pin to Taskbar"
context menu entry missing when you right-click on it? What happens
when you drag the shortcut to the taskbar?

As long as you can define a working shortcut, you should be able to pin
the shortcut to the taskbar. After creating the shortcut (and before
trying to pin it), does it work when you double-click on it?



See me 5:59 post, where I give steps to do this.

You can't rename the icon.

Thank you for the help!

-T
  #20  
Old May 6th 18, 04:52 AM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default .bat on taskbar?

T wrote:

VanguardLH wrote:

As long as you can define a working shortcut, you should be able to pin
the shortcut to the taskbar.


See me 5:59 post, where I give steps to do this.
You can't rename the icon.


Rename the icon? Or rename the shortcut name? Shortcuts are .lnk file
so they can take on the same characters as can be used in a filename.

I can rename the shortcut. I created one with your command string (all
of it but with the program and its argument enclosed in double-quotes)
and called the shortcut "test". On the desktop, I selected the shortcut
(single-click) and renamed it to "newtest". Right-clicking on the
renamed shortcut still showed the "Pin to Taskbar" context menu entry,
and dragging the renamed shortcut to the taskbar also worked to pin to
the taskbar. I don't see how the name of the shortcut matters -- other
than the shortcut's name shows up in the popup description when hovering
over the pinned shortcut (so name the shortcut something memorable
before pinning).

If "renaming the icon" means you specified a different icon for the
shortcut, I did that, too. After creating the shortcut with the full
command string, renaming the shortcut, and changing the shortcut's
properties to pick a different icon (I used shell32.dll to find some),
it still would pin the taskbar.

Don't know what weird software config you have that interferes with
creating a shortcut, renaming it, and then pinning it. Also, I did not
have to create a shortcut with just "cmd.exe". I had the shortcut
specify the full command string.

Items pinned to the Windows taskbar will show up under the following
folder:

%appdata%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\

The shortcut in that folder will be named chosenName.lnk (shortcuts
are .lnk files). If you open that folder in Windows Explorer, can you
successfully create a shortcut there with whatever command string you
want?

Which Windows theme are you using? I'm using an Aero theme (and not the
basic one). While pinning to the Start menu was available back in
Windows XP, pinning to the taskbar was a new feature introduced in
Windows 7. Tis possible it is an Aero feature, or more easily
accomplished when using the full Aero theme.

Features new to Windows 7
https://en.wikipedia.org/wiki/Featur...d_applications

If you are using the full Aero theme, perhaps some tweak or background
process is interferring with easy pinning of shortcuts. You cannot test
by booting into Windows's safe mode since, I believe, the the effects of
the Aero theme are disabled in safe mode.

Perhaps someone decided to disable an advanced feature, like DWM
(Desktop Window Manager). This is for the desktop composition feature.

https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

To check, go to:
- Run "control.exe sysdm.cpl".
- Advanced tab.
- Performance "Settings" button.

Is "desktop composition" enabled or disabled? When you look at services
(run services.msc), what is the startup state of the "Desktop Window
Manager Session Manager"? It should be Automatic.
  #21  
Old May 6th 18, 06:10 AM posted to alt.windows7.general
J. P. Gilliver (John)[_4_]
external usenet poster
 
Posts: 2,679
Default .bat on taskbar?

In message , Char Jackson
writes:
On Sat, 5 May 2018 11:58:49 +0100, "J. P. Gilliver (John)"
wrote:

[]
Incidentally, I found I had to right-click _twice_ to get to the Target
line: the first one just brings up a two-line menu, containing "Command
Prompt" and "Unpin this program from task bar". Right-clicking _on_ the
first one brings up another menu that includes Properties, which brings
up the normal properties of a shortcut. Checking with my other "pinned"
shortcuts (?), this seems to be how they all behave - some pop up
something with more than two lines (some of them adding sections
labelled Tasks or Frequent), but those two are always there at the
bottom, and Properties is never there until you do the next right-click
on the upper of the two. (I haven't "played" with pinned "shortcuts"
before; it seems they aren't _that_ different to normal ones though.)


Your newness to Win 7 is showing. :-) The second level of right-click
that applies to pinned taskbar items also applies to all running taskbar
items, pinned or not. It's a behavior change from how XP did it and is
something you just get used to after a while.


I see that you are right. Which prompted me to wonder: if I change the
properties (e. g. Target: line) of something that is _running_, i. e. a
normal taskbar "bar" or "button", what am I changing the properties
_of_? Does the OS remember how something was started? A brief check, of
something I have both a start (sub)menu shortcut to and a desktop
shortcut for, but which I _don't_ have pinned, suggests it does; I added
something to the target line of the running button/bar, then closed the
window, and the addition had been made to the properties of the start
menu shortcut (which is what I'd used to start it) but not the desktop
shortcut. And what happens if you have multiple instances of something
open (multiple taskbar buttons/bars), and change the properties of one?
Another brief test (using Notepad+) implies it changes the properties of
all the running instances. Then, what if the button/bar is the result of
starting something from Start|Run - changing _that_'s properties is
changing the properties of what? All very curious!
--
J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

And if you kill Judi Dench, you can't go back home. - Bill Nighy (on learning
to ride a motorbike [on which she would be side-saddle] for "The Best Exotic
Marigold Hotel"), quoted in Radio Times 18-24 February 2012.
  #22  
Old May 6th 18, 06:17 AM posted to alt.windows7.general
J. P. Gilliver (John)[_4_]
external usenet poster
 
Posts: 2,679
Default .bat on taskbar?

In message , VanguardLH
writes:
[]
Which Windows theme are you using? I'm using an Aero theme (and not the
basic one). While pinning to the Start menu was available back in
Windows XP, pinning to the taskbar was a new feature introduced in
Windows 7. Tis possible it is an Aero feature, or more easily
accomplished when using the full Aero theme.

[]
Pinning to taskbar isn't a function of Aero - I have a non-Aero theme (I
quite liked Aero - I know it's a bit of a resource hog, but this machine
has the capacity - but I found it interfered with my colour choices: I
like my tooltips [and other things that share their colour] as yellow on
brown, and Aero interfered with that), and I can still pin no problem.
--
J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

And if you kill Judi Dench, you can't go back home. - Bill Nighy (on learning
to ride a motorbike [on which she would be side-saddle] for "The Best Exotic
Marigold Hotel"), quoted in Radio Times 18-24 February 2012.
  #23  
Old May 6th 18, 01:29 PM posted to alt.windows7.general
chicagofan
external usenet poster
 
Posts: 187
Default .bat on taskbar?

J. P. Gilliver (John) wrote:
In message , VanguardLH
writes:
[]
Which Windows theme are you using? I'm using an Aero theme (and not the
basic one). While pinning to the Start menu was available back in
Windows XP, pinning to the taskbar was a new feature introduced in
Windows 7. Tis possible it is an Aero feature, or more easily
accomplished when using the full Aero theme.

[]
Pinning to taskbar isn't a function of Aero - I have a non-Aero theme
(I quite liked Aero - I know it's a bit of a resource hog, but this
machine has the capacity - but I found it interfered with my colour
choices: I like my tooltips [and other things that share their colour]
as yellow on brown, and Aero interfered with that), and I can still
pin no problem.


Color choice would be a problem for me too. My choice is yellow on
burgundy [which matches my toolbar background].
bj
  #24  
Old May 6th 18, 02:02 PM posted to alt.windows7.general
J. P. Gilliver (John)[_4_]
external usenet poster
 
Posts: 2,679
Default .bat on taskbar? (Now colours in Aero) and elsewhere)

In message , chicagofan
writes:
J. P. Gilliver (John) wrote:

[]
Pinning to taskbar isn't a function of Aero - I have a non-Aero theme
(I quite liked Aero - I know it's a bit of a resource hog, but this
machine has the capacity - but I found it interfered with my colour
choices: I like my tooltips [and other things that share their colour]
as yellow on brown, and Aero interfered with that), and I can still
pin no problem.


Color choice would be a problem for me too. My choice is yellow on
burgundy [which matches my toolbar background].
bj

Do you find some app.s use the tooltip background colour for their own
purposes, but don't pick up the tooltip foreground colour - which means,
if you have a dark background choice, they're almost illegible (e. g.
black on brown)?
--
J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

I'm the oldest woman on primetime not baking cakes.
- Anne Robinson, RT 2015/8/15-21
  #25  
Old May 7th 18, 05:01 AM posted to alt.windows7.general
T
external usenet poster
 
Posts: 4,600
Default .bat on taskbar?

On 05/05/2018 08:52 PM, VanguardLH wrote:
Rename the icon? Or rename the shortcut name?


I use the term "Icon" and "Shortcut" interchangeably.
Sorry for the confusion.
  #26  
Old May 8th 18, 01:49 PM posted to alt.windows7.general
chicagofan
external usenet poster
 
Posts: 187
Default .bat on taskbar? (Now colours in Aero) and elsewhere)

J. P. Gilliver (John) wrote:
In message , chicagofan
writes:
J. P. Gilliver (John) wrote:

[]
Pinning to taskbar isn't a function of Aero - I have a non-Aero
theme (I quite liked Aero - I know it's a bit of a resource hog, but
this machine has the capacity - but I found it interfered with my
colour choices: I like my tooltips [and other things that share
their colour] as yellow on brown, and Aero interfered with that),
and I can still pin no problem.


Color choice would be a problem for me too. My choice is yellow on
burgundy [which matches my toolbar background].
bj

Do you find some app.s use the tooltip background colour for their own
purposes, but don't pick up the tooltip foreground colour - which
means, if you have a dark background choice, they're almost illegible
(e. g. black on brown)?


Haven't noticed that, but it's probably because I don't use a lot of
different apps. [Old fogey here.]
bj
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 04:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.