Ok guys,
I have been searching the method to pin shortcut of some application on the task bar that too with the help of script. Most of the people think that mere putting the shortcut in the task bar folder @
Here is the method to pin an applications shortcut on the task bar, here we will pin Google Chrome's shortcut on the task bar:
First copy this content on notepad and save it as "pintotaskbar.vbs"
Now copy this content on notepad and save it as "(Any Name).cmd"
Place both the files in the same folder and now make this cmd run after the installation of google chrome, it will pin chrome's shortcut on the taskbar, it is test on already installed OS, and I guess should work during the installation as well.
These scripts are not mine, these are written by maxXPsoft of msfn.org, all credit goes to him.
I have been searching the method to pin shortcut of some application on the task bar that too with the help of script. Most of the people think that mere putting the shortcut in the task bar folder @
Code: Select all
is enough to pin the shortcut, but it will not work, I have already tried. %UserProfile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
Here is the method to pin an applications shortcut on the task bar, here we will pin Google Chrome's shortcut on the task bar:
First copy this content on notepad and save it as "pintotaskbar.vbs"
Code: Select all
Set objShell = CreateObject("Shell.Application")
set filesystem = CreateObject("scripting.Filesystemobject")
Set objFolder = objShell.Namespace(filesystem.GetParentFolderName(Wscript.Arguments(0)))
Set objFolderItem = objFolder.ParseName(filesystem.GetFileName(WScript.Arguments(0)))
Set colVerbs = objFolderItem.Verbs
For Each objVerb in colVerbs
If Replace(objVerb.name, "&", "") = "Pin to Taskbar" Then objVerb.DoIt
If Replace(objVerb.name, "&", "") = "Unpin from Taskbar" Then objVerb.DoIt
Next
Now copy this content on notepad and save it as "(Any Name).cmd"
Code: Select all
cd /d %~dp0
WScript.exe %~dp0PinToTaskbar.vbs %userprofile%\AppData\Local\Google\Chrome\Application\chrome.exe
Exit
Place both the files in the same folder and now make this cmd run after the installation of google chrome, it will pin chrome's shortcut on the taskbar, it is test on already installed OS, and I guess should work during the installation as well.
These scripts are not mine, these are written by maxXPsoft of msfn.org, all credit goes to him.
Last edited by nice_guy75 on 02 Oct 2011, 13:06, edited 1 time in total.