Monday, September 27, 2010

VBS script to create shortcut to network location

Set objShell=Wscript.CreateObject("Wscript.shell")
strDesktopFolder=objShell.SpecialFolders("Desktop") & _
"\"
Set objShortcut=objShell.CreateShortcut(strDesktopFolder & _
"Company Files.lnk")
objShortCut.TargetPath = "\\server\Folder"
objShortCut.Description = "Company Files Description"
objShortCut.Save

Whats wrong with this question?


Took this test a short while ago, note the 2007 Copyright.
Anyway there is something very wrong with this question, can you figure out what it is?