The TargetPath property sets or retrieves the location of the file that is the target of the shortcut. The arguments that are passed to the shortcut are unaffected by the setting of this property.
Set objShell =
WScript.CreateObject("WScript.Shell")
Set objShtCut =
objShell.CreateShortcut _
("C:\Documents And
Settings\DevGuru\Desktop\Shortcut To Test Script.lnk")
objShtCut.TargetPath = "C:\test.js"
objShtCut.Save
WScript.Echo objShtCut.TargetPathC:\Test.jsThis VBScript code sets the target for a shortcut called "Shortcut to Test Script.lnk" to "C:\test.js".