I have this script to create a shortcut to my desktop :
Set oWS = WScript.CreateObject("WScript.Shell")
shortCut = "C:\Users\%userprofile%\desktop\PPPM.lnk"
Set oLink = oWS.CreateShortcut(shortCut)
oLink.TargetPath = "C:\GoogleChromePortable\inicio.exe"
oLink.WorkingDirectory = "C:\GoogleChromePortable"
The script works fine and the PPPM.Ink shortcut is created as long as I don't
place it on my desktop. It doesn't seem to recognize the path to %homepath%, %ALLUSERSPROFILE% or %userprofile%. Where is the problem ?
What is the standard path to anybody's desktop ? Any suggestion on making this script work ?