I'm trying to get the script below to produce a shortcut like this:
"C:\Program Files\Internet Explorer\iexplore.exe" http://WebApp/index.aspx
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oUrlLink = WshShell.CreateShortcut(strDesktop & "\WebApp.url")
oUrlLink.TargetPath = ""&chr(34)& _
"C:\Program Files\Internet Explorer\iexplore.exe" & _
chr(34)&" http://WebApp/index.aspx"
oUrlLink.Save
but it doesn't seem to like the quotes.
I get an Invalid Syntax in URL: ""C:\Program Files\Internet Explorer\iexplore.exe" http://WebApp/index.aspx".
How can I embed a " without vbscript getting its knickers in a knot?