Can a batch file be pinned to the taskbar?

Page 1 of 2 12 LastLast
  1. rboppy's Avatar
    Posts : 572
    Windows 10
       #1

    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 Computer

  2. Edwin's Avatar
    Posts : 17,111
    Windows 10
       #2

    rboppy said:
    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 Computer

  3. spunk's Avatar
    Posts : 2,842
    Windows 10 Pro 64 Bit 20H2
       #3

    You can just drag it to the taskbar.
      My Computer

  4. rboppy's Avatar
    Posts : 572
    Windows 10
    Thread Starter
       #4

    Edwin said:
    You'll need to create a shortcut of the batch file with the prefix explorer.exe
    Like explorer.exe\batchfile.bat?
      My Computer

  5. rboppy's Avatar
    Posts : 572
    Windows 10
    Thread Starter
       #5

    spunk said:
    You can just drag it to the taskbar.
    That didn't work.
      My Computer

  6. Edwin's Avatar
    Posts : 17,111
    Windows 10
       #6

    rboppy said:
    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 Computer

  7. rboppy's Avatar
    Posts : 572
    Windows 10
    Thread Starter
       #7

    Thanks Edwin, I'll try that in the morning.
      My Computer

  8. Brink's Avatar
    Posts : 56,346
    64-bit Windows 10 Pro for Workstations build 21359
       #8

    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 Computers

  9. rboppy's Avatar
    Posts : 572
    Windows 10
    Thread Starter
       #9

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

    Thanks again Edwin!
      My Computer


  10. Posts : 486
    Windows 10x64 17713
       #10

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


 
Page 1 of 2 12 LastLast

  Related Discussions
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 07:39.
Find Us




Windows 10 Forums