pin file to taskbar?

hamilton

New member
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

OS
Windows 7 64 bit
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 8.1 Pro x64
CPU
Intel Core i5-2500K @ 3.30GHz - S1155
Motherboard
Asus P8P67 LE Rev3, Intel P67, S115
Memory
8GB Corsair DDR3 XMS3, PC3-12800
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
On-Board
Monitor(s) Displays
3 x 24" {Extended Display}
Screen Resolution
1920 x 1080
Hard Drives
300GB Seagate Barracuda 7200
PSU
550W Coolermaster GX550
Case
Silverstone Precision PS04B
Cooling
Stock
Keyboard
Logitech K120
Mouse
World of Warcraft Cataclysm MMO Gaming Mouse
Internet Speed
80 MB
Antivirus
MSE / Windows Defender
Browser
Chrome
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

Computer Manufacturer/Model Number
Dell XPS17 laptop
OS
Windows 7 Pro 64
CPU
i7 2760QM 2.4GHz
Memory
8GB
Graphics Card(s)
Intel HD/Nvidia GeForce 555M
Sound Card
RealTek
Monitor(s) Displays
Ntrig DuoSense digitzer, touchscreen
Hard Drives
750GB
Mouse
Synaptics touchpad
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

OS
windows 7 ultimate 32
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

OS
Win7U 64 RTM
CPU
Q9550
Motherboard
GA-EP45-UD3R
Memory
8GB Gskill
Graphics Card(s)
ASUS|EAH4850/HTDI/1GD3/A
Sound Card
xfi Plat
Monitor(s) Displays
Dell 2405fpw
Screen Resolution
1920x1200
Hard Drives
Seagate & WD sata Drives
PSU
Antec
Case
Antec
Keyboard
MS Natural Ergonomic 4000
Mouse
Logitech MX610 USB Cordless
Back
Top