On 05/03/2018 08:55 PM, Todd Chester wrote:
Hi All,

But only a little bit off topic.

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

How do you guys do it?

-T

Okay, here is what I got so far.

Note: %comspec% contains the full name and path to cmd.exe

1) desktop
2) create shortcut: %comspec%
   Do not rename the shortcut or pinning to the taskbar will fail
3) change the new shortcuts icon
4) pin to the taskbar
5) Right Clink on the taskbar icon
   on the pop up, right click again on Properties
6) add after %comspec% what you need on the command line.  For example:
    "%comspec%" /C  C:\rakudo\bin\perl6.bat C:\NtUtil\RemoveMargin.pl6

The only thing missing is the icon's name, which I haven't figured
out how to change yet

Reply via email to