AndyinJapan
asked on
When i run the script by user its fine but not by computer?
When i run the script by user its fine but not by computer?
Can someone see any errrrs?
Many thanks
Andy
Set objNet = WScript.CreateObject("WScr ipt.Networ k")
Set WshShell = CreateObject("WScript.Shel l")
DesktopPath = WshShell.SpecialFolders("D esktop")
'map network drive
objNet.MapNetworkDrive "T:", "\\Bst-main\Student\_Recep tion\Yr R 2007 - 2008", "True"
'create a icon on the desktop
Set link = WshShell.CreateShortcut(De sktopPath & "\Yr R 2007 - 2008.lnk")
link.Description = "User Share Drive"
link.HotKey = "CTRL+ALT+SHIFT+T"
link.IconLocation = "explorer.exe,0"
link.TargetPath = "T:"
link.WindowStyle = 3
link.Save
Can someone see any errrrs?
Many thanks
Andy
Set objNet = WScript.CreateObject("WScr
Set WshShell = CreateObject("WScript.Shel
DesktopPath = WshShell.SpecialFolders("D
'map network drive
objNet.MapNetworkDrive "T:", "\\Bst-main\Student\_Recep
'create a icon on the desktop
Set link = WshShell.CreateShortcut(De
link.Description = "User Share Drive"
link.HotKey = "CTRL+ALT+SHIFT+T"
link.IconLocation = "explorer.exe,0"
link.TargetPath = "T:"
link.WindowStyle = 3
link.Save
whats the error?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks...
All I have to do now is find a work around..
:)
All I have to do now is find a work around..
:)