illusions Posted July 29, 2011 Posted July 29, 2011 (edited) COPY "C:\Users\Public\Desktop\AAP1.lnk" "%USERPROFILE%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu\AAP1.lnk"move /y "%USERPROFILE%\Desktop\AAP2.lnk" "%USERPROFILE%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu\APP2.lnk"The two shortcut got move or copy to the "%USERPROFILE%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu directory but when I click startmenu it does not appear over there { not pinned on startmenu } even after reboot.Please advice and thank you. Edited July 29, 2011 by illusions
Tripredacus Posted July 29, 2011 Posted July 29, 2011 None of my scripts for moving shortcuts about have worked in Win7 or Vista. I never put in the effort to figure out why.
illusions Posted July 30, 2011 Author Posted July 30, 2011 Hi all, Since copy or move does not seem to work in windows 7, I found this script that can pin any application to taskbar / startmenu.PIN TO TASKBAR SCRIPT.VBS Dim ObjFolder, ObjFolderItem, colVerbs, objverb, objshellSet objShell = CreateObject("Shell.Application")Set objFolder = objShell.Namespace("C:\Program Files (x86)\Google\Google Talk")Set objFolderItem = objFolder.ParseName("googletalk.exe")Set colVerbs = objFolderItem.VerbsFor Each objVerb in colVerbsIf Replace(objVerb.name, "&", "") = "Pin to Taskbar" Then objVerb.DoItNextWScript.Quit PIN TO STARTMENU SCRIPT.VBSDim ObjFolder, ObjFolderItem, colVerbs, objverb, objshellSet objShell = CreateObject("Shell.Application")Set objFolder = objShell.Namespace("C:\Program Files (x86)\Google\Google Talk")Set objFolderItem = objFolder.ParseName("googletalk.exe")Set colVerbs = objFolderItem.VerbsFor Each objVerb in colVerbsIf Replace(objVerb.name, "&", "") = "Pin to Start Menu" Then objVerb.DoItNextWScript.Quit
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now