How do I PIN a x.BAT file to the TASKBAR?


  1. Posts : 115
    windows 7 ultimate
       #1

    How do I PIN a x.BAT file to the TASKBAR?


    I want to execute 2 programs in a row from C:/Program Files (x86)/xxx/yyy.bat which contains programs: #1, then #2 .
    Then I want to PIN it to the Taskbar to make it easy as I use it all the time.
    There is lots of BS about how to do this using CMD.exe, etc and wasted lots of time following bad instructions.

    Anyone ever done this successfully? OR is there a better way to execute one program that needs to be run before the next one, and then PIN the shortcut, etc as BAT can not on my system (Windows 7, 64bit, Home Premium) be pinned directly.

    Would appreciate a workable answer.

    Thanks
      My Computer


  2. Posts : 10,485
    W7 Pro SP1 64bit
       #2

    Code:
    C:\Windows\explorer.exe "C:\Program Files (x86)\xxx\yyy.bat"
    works for me

    right-click on an empty spot on your desktop
    select New > Shortcut from the context menu
    paste in the code above and select Next
    name the shorctut and select Finish

    change the shortcut's icon before pinning to the taskbar

    How do I PIN a x.BAT file to the TASKBAR?-pinned.png
    Last edited by UsernameIssues; 21 Dec 2015 at 00:38.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:48.
Find Us