Desktop Icon script problem.
I am trying to auto install an icon on user desktops for an exe using a network path.
I have 2 problems:
1. Throws up an error saying unable to save shortcut
2. it puts quotes around the target path and the shortcut then does not work.
If I manually edit the shortcut and take the quotes out the link works with the quotes in it does not :(
Any ideas? Copy of of the code I have written is below :) Thanks.
set Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("AllUsersDesktop")
set Link = Shell.CreateShortcut(DesktopPath & "\Testbase KS3 Mathematics.lnk")
Link.TargetPath = "\\10.xx.xx.xx\Testbase32\Testbase32.exe K3_MATHS"