To add to what Jim mentioned: I've used the shortcut to cmd.exe option with "/c" and the path to any file you want to open (it's not just for scripts) and it works very well. One thing to note though is that with this method, the cmd.exe window will remain open for as long as the file that you are calling remains open. One workaround is to also combine cmd.exe with the "start" command. So if for instance you have the following shortcut properties:
C:\Windows\System32\cmd.exe /c "path to file or script to open" You can change the shortcut properties into: C:\Windows\System32\cmd.exe /c "start "" "path_to_file_or_script_to_open"" This will open "path_to_file_or_script_to_open" without the cmd.exe window remaining open for the entire time that "path_to_file_or_script_to_open" remains open. Note that the "start" command can be used to start programs. The first parameter is the title of the window and is mandatory, but for simplicity, we keep it blank. -Aakash Shah From: [email protected] [mailto:[email protected]] On Behalf Of Jim Mediger Sent: Wednesday, May 15, 2013 8:40 AM To: [email protected] Subject: RE: [NTSysADM] Pin a .chm file to the Taskbar or Start Menu There are several ways to accomplish this: The folder for the Windows 7 taskbar is located at: C:\Users\USER_NAME\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar You can create a shortcut there and upon logging off and back on, it should appear. ************************************************** 1. Create a shortcut to your batch file. 2. Get into shortcut property and change target to something like: cmd.exe /C "path-to-your-batch". 3. Simply drag your new shortcut to the taskbar. It should now be pinnable. ************************************************** 1. Rename your .cmd/.bat to to .exe 2. Right clicking on the *.exe and choose pin to taskbar 3. Rename it back to .cmd/.bat 4. Shift+right clicking the taskbar icon (for the exe) and choose properties 5. Changing the reference from *.exe to .cmd/.bat and change icon as needed It starts working right away but the icon refresh needs a reboot. ************************************************** There is only one simple rule that you have to follow in order to make almost any item "pinnable" to the taskbar: create a shortcut, save it somewhere safe so you don't delete it by mistake, create a shortcut to that shortcut and add the explorer word before its path. Then you have a shortcut which you can pin to the taskbar. ****************************************************** JimM From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of James Rankin Sent: Wednesday, May 15, 2013 10:11 AM To: [email protected]<mailto:[email protected]> Subject: [NTSysADM] Pin a .chm file to the Taskbar or Start Menu Anyone got any sneaky ways of getting a .chm file, or a shortcut to a .chm file, to be pinned to the Taskbar or Start Menu? Apparently there are only certain file types you can bung on there...has anyone had to cross this bridge and found a way of achieving it? TIA, -- James Rankin Technical Consultant (ACA, CCA, MCTS) http://appsensebigot.blogspot.co.uk<http://appsensebigot.blogspot.co.uk/> **Warning** Any technical data is or may be controlled under the U.S. International Traffic in Arms Regulations (ITAR) and may not be exported, released, or disclosed to foreign nationals without proper authorization by the U.S. Department of State." "CONFIDENTIALITY NOTICE: This electronic transmission, its contents and any attachments (hereinafter referred to collectively as "transmission") are confidential and are solely directed to, and intended for, the named addressee(s) only. Any use, reproduction or dissemination of this transmission by an unintended recipient is strictly prohibited. If you receive this transmission in error, please immediately notify the sender and delete this transmission in its entirety from your files. All intellectual property rights in this transmission are expressly reserved."

