Monday, September 27, 2010

VBS script to create shortcut to network location

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

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?