pin file to taskbar?


  1. Posts : 3
    Windows 7 64 bit
       #1

    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...
      My Computer


  2. Posts : 72,037
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Hamilton,

    You can drag and drop a .vbs file to the taskbar, but it will pin it in the jump list of wscript.exe instead.

    If you wanted a separate icon, then you will have to pin it in a folder as a toolbar instead.

    Hope this helps,
    Shawn
      My Computer


  3. Posts : 2,177
    Windows 8.1 Pro x64
       #3

    hamilton said:
    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...
    It is possible, i have done it with my batch file, i will try my best to explain:

    1. Pin a program to the taskbar
    2. go to
    Code:
    C:\Users\<USER>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\
    3. Right click the program you just pinned and click properties
    4. Change the target: to the location\file (e.g. c:\Test\JDobbsy1987.bat)
    and Change the start in: to the location\ (e.g. c:\Test\)
    5. Click OK and now when you click that program you pinned to the task bar it will run the script.

    Note* when you change the target and start in, you will notice that there is a short cut option below them, if you click in that box and type a letter e.g. s you will see that it changes to CTRL + ALT + S, This means you will be able run the script by clicking the icon or by pressing CTRL + ALT + S,

    Hope this helps

    Regards,
    JDobbsy1987
      My Computer


  4. Posts : 83
    Windows 7 Pro 64
       #4

    Hi Hamilton, If you can find a way to launch your script from the command line with the explicit expression of the associated EXE program + your non exe string, I bet you can do it using a shortcut with the equivalent of that command-line string.

    I think the Taskbar (and Startmenu) Pinning, is an area that is still in the pioneering phase. The "pinned-to-taskbar" objects seem to be as different a paradigm as "Shortcuts" when they first appeared.

    I have a great fondness for batch files, and I am still struggling to get my essential list "pinned". But it is getting there, after exploring a ton of the posts/tutorials on this forum, Microsoft, the rest of the Internet, and quite a few hours of personal experimentation.

    I think I see a dependence on ".exe" files for the purpose of pinning, which strikes me as silly, but there could well be a purpose (e.g. security?) that is just beyond my level of understanding. Whatever, every single item that I have been able to pin has in its properties target, SomethingOrOther.EXE

    I have also observed:
    1) I cannot pin a data file, but I can pin the command to launch that file from its assoc. .EXE file (cannot pin xxx.HTML, but I can pin "...\Chrome.EXE xxx.HTML...")
    2) I cannot pin a folder, but I can pin "explorer.exe D:\MyFolder"
    3) I cannot pin a Batch file, but I can pin "CMD.EXE /c (/k,... etc) MyLittleProgram.BAT"
    4) When I edit the properties on a Pinned program, (e.g. the icon) it may not stick, but if I make a pinnable shortcut on the desktop, then change its icon, then pin it, I get the desired icon.
    5) Frequently, when I have created one of these little non-mainstream pinned items, when it is clicked, it creates a "ghost" object on the taskbar with an unusual icon, rather than the expected "stacking" where I clicked.

    Just my fumbling results. If anyone finds a Microsoft "Guide to Pinning" I would love to know about it.
      My Computer


  5. Posts : 1
    windows 7 ultimate 32
       #5

    Create an empty file somewhere on your disk name it for example test.txt change the name to test.exe ignore the windows warning.

    Right click this file, in the menu choose pin to taskbar.
    Right click the icon in the taskbar, right click test and choose properties.

    Fill in the taget: path to the bat file and the start from field like mentioned above.
      My Computer


  6. Posts : 1,127
    Win7U 64 RTM
       #6

    dimi78 said:
    Create an empty file somewhere on your disk name it for example test.txt change the name to test.exe ignore the windows warning.

    Right click this file, in the menu choose pin to taskbar.
    Right click the icon in the taskbar, right click test and choose properties.

    Fill in the taget: path to the bat file and the start from field like mentioned above.
    Simple and effective. Works here. Changing the icon, however, seems a bit problematic.

    James
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 16:04.
Find Us