Originally Posted By: ClarkKent
?? Don't understand what your saying.......sorry.


If you put the lines Shanw posted directly after the copy command they will show you the error so you can see where and why it doesn't work.

It can be done a lot simpler. Like this.

 Code:
If NOT @LOGONMODE
	Break On
Else
	Break Off
EndIf

$rc = wshShortcut("Your app name","path to the executable en executable name you want to let the shortcut point to")


You should add the wshShortcut UDF to the script. There is no need to change the wshShortcut code because it's a UDF and it comes ready made.

wshShortcut() - v1.3 - Create File & Web Shortcuts
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.