Page 1 of 2 12 LastLast
  1.    26 Jul 2016 #1
    Join Date : Mar 2016
    Posts : 119
    Windows 10

    Can a batch file be pinned to the taskbar?


    Right clicking a batch file on my desktop does not give me the option to pin it, is there a way?

    Thanks!
      My ComputerSystem Spec
  2.    26 Jul 2016 #2
    Join Date : Feb 2014
    Posts : 9,136
    Windows 10 Professional

    Quote Originally Posted by rboppy View Post
    Right clicking a batch file on my desktop does not give me the option to pin it, is there a way?

    Thanks!
    You'll need to create a shortcut of the batch file with the prefix explorer.exe
      My ComputersSystem Spec
  3.    26 Jul 2016 #3
    Join Date : Jun 2016
    Los Angeles
    Posts : 960
    Windows 10 Pro

    You can just drag it to the taskbar.
      My ComputerSystem Spec
  4.    26 Jul 2016 #4
    Join Date : Mar 2016
    Posts : 119
    Windows 10
    Thread Starter

    Quote Originally Posted by Edwin View Post
    You'll need to create a shortcut of the batch file with the prefix explorer.exe
    Like explorer.exe\batchfile.bat?
      My ComputerSystem Spec
  5.    26 Jul 2016 #5
    Join Date : Mar 2016
    Posts : 119
    Windows 10
    Thread Starter

    Quote Originally Posted by spunk View Post
    You can just drag it to the taskbar.
    That didn't work.
      My ComputerSystem Spec
  6.    26 Jul 2016 #6
    Join Date : Feb 2014
    Posts : 9,136
    Windows 10 Professional

    Quote Originally Posted by rboppy View Post
    Like explorer.exe\batchfile.bat?
    Put the batch file somewhere it won't get moved.
    Shift/Right click it, Copy as Path, paste that in a new shortcut dialog but add the prefix explorer.exe and a space

    Example: explorer.exe "C:\Z Pack\Context BAT\Load_x64.bat"

    drag that to the taskbar, delete the shortcut if you wish.
      My ComputersSystem Spec
  7.    26 Jul 2016 #7
    Join Date : Mar 2016
    Posts : 119
    Windows 10
    Thread Starter

    Thanks Edwin, I'll try that in the morning.
      My ComputerSystem Spec
  8.    26 Jul 2016 #8
    Join Date : Oct 2013
    Posts : 24,403
    64-bit Windows 10 Pro build 17017

    Hello rboppy,

    If you like, you could also add the Quick Launch toolbar to the taskbar, then add the .bat file to Quick Launch.

    https://www.tenforums.com/tutorials/4...dows-10-a.html
      My ComputersSystem Spec
  9.    27 Jul 2016 #9
    Join Date : Mar 2016
    Posts : 119
    Windows 10
    Thread Starter

    Thanks Brink, but Edwin's suggestion worked like a charm!

    Thanks again Edwin!
      My ComputerSystem Spec
  10.    27 Jul 2016 #10
    Join Date : Oct 2014
    Posts : 381
    Windows 10x64 16241

    Code:
    cmd.exe /c "Path to batch file"
      My ComputerSystem Spec

 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
Taskbar > File Explorer > Right Click > Pinned > Not Opening with any
The Problem. Taskbar > File Explorer > Right Click > Pinned > Documents , Desktop or Anything on the drop down list Not Opening with any Double Click or Right Click > Open Click . . .On 1 of my PC's (main One) , Works OK on the Others. I believe...
General Support
How to change visual effects using batch file or registry file?
Hi there forum, how do you change the Visual effects using a batch file or registry file. Thanks, Edward.
General Support
Can't open folders, which are pinned down to the taskbar (Explorer)
I have a problem opening folders that i pinned down in the taskbar. 27392 When I click a folder nothing happens (with the exception of "this PC"/"Your PC", in which case it actually opens what it should open) This problem is limited to Windows...
Software and Apps
Solved Custom folder pinned to taskbar?
Is there a way to pin one or more folders to the taskbar? I know I can access it through the file explorer's jumplist but this involves too many clicks, and I like to be able to access my Downloads and Dropbox folder from the task bar, not the...
General Support
Chrome won't launch when pinned to taskbar
Hello I have chrome pinned to the task bar but it won't simply launch the application like it does with all the my other icons. I have to keep right clicking it and then choosing chrome within the menu - kinda annoying. Is there a way to...
Browsers and Email
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 15:09.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums