I have a login script that creates a shortcut on a users' desktop. When I set the TARGETPATH property for the shortcut it ends up with double quotes at the beginning and end of the TARGETPATH string. This causes the shortcut not to function.
How can I get rid of the double quotes?
I have copied the code below.
Set objShell = WScript.CreateObject("WScript.Shell")
strDesktopFolder = objshell.SpecialFolders("Desktop")
set objShortCut = objshell.CreateShortcut(strDesktopFolder & "\BROMBERGS.lnk")
objShortCut.TargetPath = "\\dbserver\appwin\ASCMenu.exe C:Brombergs"
objShortCut.Description = "Brombergs ACS System"
objShortCut.Save
How can I get rid of the double quotes?
I have copied the code below.
Set objShell = WScript.CreateObject("WScript.Shell")
strDesktopFolder = objshell.SpecialFolders("Desktop")
set objShortCut = objshell.CreateShortcut(strDesktopFolder & "\BROMBERGS.lnk")
objShortCut.TargetPath = "\\dbserver\appwin\ASCMenu.exe C:Brombergs"
objShortCut.Description = "Brombergs ACS System"
objShortCut.Save