| Home | Using Windows XP, all that you had to do was to drag and drop the .bat file's icon onto the Taskbar and select Create Shortcuts Here. Not so, Windows 7. |

Tutorial: How to Pin a .BAT (Batch) File to the Taskbar using Windows 7

By Howard Charles Best, January 25, 2010

(LLBest.com, )


Using Windows XP, all that you had to do was to drag and drop the .bat file's icon onto the Taskbar and select “Create Shortcuts Here.” Not so, Windows 7.

But this works (including the creation of a sample .bat file):

1. Click Start.

2. Click Computer.

3. Click Organize.

4. Click Folder and search options.

5. Click the View tab.

6. Uncheck Hide extensions for known file types.

7. Click OK.

8. Double click Local Disk (C:).

9. Create a new folder called dosstuff. (c:\dosstuff)

10. Within the dosstuff folder, create a new file called test.bat containing the following text:

11. Click Start.

12. Enter “cmd” in the Search programs and files field.

13. Right-click on cmd.exe and select Pin to Taskbar.

14. Right-click on the newly created Image of test .bat file output Taskbar icon.

15. Right-click on Command Prompt and select Properties.

16. Add “ /c c:\dosstuff\test.bat” to the end of the Target string.

17. Click OK.

18. Click the Image of test .bat file output Taskbar icon.

19. You should see the following:

Image of test .bat file output


You can also change the icon, but it may take as long as several days for the change to actually occur! (For some icon choices, enter C:\Windows\system32\imageres.dll in the Look for icons in this file: field, and click OK)


| Home | THIS WEB PAGE URL: http://LLBest.com/PinABatchFileToTheTaskbar.htm |