Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

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

23 Aug 2015   #1

windows 7 ultimate
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.


My System SpecsSystem Spec
23 Aug 2015   #2

W7 Pro SP1 64bit

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

My System SpecsSystem Spec

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

Thread Tools

Similar help and support threads
Thread Forum
Pinning a file to the taskbar
Hi. Is it possible to pin a specific file to the taskbar like was possible in Windows Professional? I'm only seeing a way of pinning a program to the taskbar. Thank you, Grainne
Taskbar Image File Location
What file in the Windows directory contains the task bar image? Also is the "Show Desktop" button (right of green line) in the same image or a different location? Thanks in advance.
Can I pin a jpeg file to the Taskbar?
Is it possible to pin a jpeg file to the task bar so that I can easily open it with a single click from wherever I am. It is possible to pin it to the jump list for some programs on my Taskbar (eg Calculator & Notepad) but not to others (eg Explorer). I can also pin it to the Start menu. However,...
General Discussion
pin file to taskbar?
Is it possible to pin to taskbar a file? I would like to pin to the taskbar a script. I can put it inside a folder and pin it though I would like to know if it possible to pin it as a file. As much as I know it seems that it is possible...
General Discussion
Any way to pin an .xls file to explorer icon on taskbar
I have an xls file that I frequent a lot and was hoping I could pin it to the explorer icon on my taskbar. I know I can pin it to the taskbar under the excel icon but I don't need an excel icon on my taskbar to clutter it up. Is there any way to pin it to the explorer icon instead?
General Discussion

Our Sites

Site Links

About Us

Find 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 00:25.
Twitter Facebook Google+