Jump to content

Welcome Guest! To access all forums & features, please register an account or sign-in. → Why register?




Photo

How can I pin a .vbs file to the Windows 8 Taskbar?


  • Please log in to reply
7 replies to this topic - - - - -

#1 ady199

ady199

    Neowinian

  • 397 posts

Posted 22 September 2012 - 18:32

I have a .vbs file which calls the standard "Shut Down Windows" dialog in Windows 8, I want to pin the file to the Windows 8 Taskbar, so I can single click the file for the "Shut Down Windows" dialog to appear

Posted Image

How can I pin the file to the Windows 8 Taskbar?

I've tried dragging the .vbs file to the Taskbar, but all it does is to put a windows script icon on the taskbar and when I click on it, it just displays the following dialogue box:-

Posted Image

Help!!


#2 betax

betax

    Neowinian Fanatic

  • 342 posts

Posted 22 September 2012 - 18:40

This may help you.
1) Create a folder in your computer (perhaps the windows directory) called "Quick Commands" (or any name really) and put your vbs file in that folder.
2) Right-click your taskbar and select Toolbars>New Toolbar and browse to the folder you created that contains your vbs file.

This will allow you to place items like this on your taskbar.

#3 Max Norris

Max Norris

    Neowinian Senior

  • 2,118 posts
  • Location: Midwestern US
  • OS: Windows 8, 7, FreeBSD
  • Phone: Lumia 900

Posted 22 September 2012 - 18:47

You're actually pinning the script interpreter, not the script itself. It does the same in Windows 7. (bug?) What does work (at least in 7..) is to make a shortcut, edit the properties and change the target to read something along the lines of:

wscript.exe "C:\Full Path\To My\TestScript.vbs"

That one works, again at least in 7.

#4 OP ady199

ady199

    Neowinian

  • 397 posts

Posted 22 September 2012 - 18:47

This may help you.
1) Create a folder in your computer (perhaps the windows directory) called "Quick Commands" (or any name really) and put your vbs file in that folder.
2) Right-click your taskbar and select Toolbars>New Toolbar and browse to the folder you created that contains your vbs file.

This will allow you to place items like this on your taskbar.


Perfect

Many Thanks for your help

#5 OP ady199

ady199

    Neowinian

  • 397 posts

Posted 22 September 2012 - 18:53

You're actually pinning the script interpreter, not the script itself. It does the same in Windows 7. (bug?) What does work (at least in 7..) is to make a shortcut, edit the properties and change the target to read something along the lines of:

wscript.exe "C:\Full Path\To My\TestScript.vbs"

That one works, again at least in 7.


That works - Many Thanks

#6 Dot Matrix

Dot Matrix

    Neowinian UNSTOPPABLE

  • 5,947 posts
  • Location: USA
  • OS: Windows 8
  • Phone: Nokia Lumia 920

Posted 22 September 2012 - 19:03

You can't pin a file directly to the taskbar. One of the above methods will work.

#7 Sebastian Swann

Sebastian Swann

    Neowinian

  • 40 posts

Posted 22 September 2012 - 19:08

You can also pin Powershell to your taskbar and then drag script onto Powershell icon. This will pin it to its JumpList and then you can LMB on powershell and pick it from there.

#8 UXGaurav

UXGaurav

    Tried Classic Shell? It has 7 million+ downloads & growing

  • 3,613 posts
  • Location: Windows
  • OS: Windows

Posted 22 September 2012 - 19:08

Easy to use way for future fast pinning/unpinning: Taskbar Pinner

Posted Image
Posted Image