| 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. Click the Shortcut tab.

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

18. Click OK.

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

20. You should see the following:

Image of test .bat file output

Under the Shortcut tab, you may have noticed the Change Icon… button. You can use this button to change the icon, but it may take as long as several days for the change to actually be visible! (For numerous icon choices, navigate to C:\Windows\system32\imageres.dll.)


| Home | THIS WEB PAGE URL: http://LLBest.com/?P=6a |