TechNet Forum Windows 7 Support Team

http://social.technet.microsoft.com/Forums/en-US/category/w7itpro

Pining a .BAT/.CMD File to Taskbar

Pining a .BAT/.CMD File to Taskbar

  • Comments 2
  • Likes

When a .BAT file or a shortcut pointing to a .bat file is opened, we will not find an option to "Pin the program to taskbar”; and we can’t neither drag nor drop the file to the taskbar.

 

The .CMD file has the same behavior as the .BAT file.

 

Method

 

Please perform the following steps to pin a .BAT/.CMD file to taskbar:

 

1.      Pin a shortcut for cmd.exe to the taskbar.

 

2.      Right click the shortcut on the taskbar and you will see a list that includes "Command Prompt" and "Unpin this program from the taskbar".

 

3.      Right click the icon for Command Prompt and select properties.

 

4.      In the box for Target, go to the end of "%SystemRoot%\system32\cmd.exe" and add "/C" (without quotations) and the path and name of the batch file.

 

5.      Then the batch file will be pinned to the taskbar.

 

For .CMD files, you also can try the same procedures.

Comments
  • This method works well for a single file. Unfortunately it won't let you pin multiple files. Is there any way to do that?

  • johnastevens.com/helpTopics.aspx a simple application which you can pin to your taskbar that will then allow you to pin batch files to it.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment