I checked the help file, but i can't quite grasp the idea of com automation and variables yet.

Below is what i have created for a user called - smithb. Everything is fine except it doesn't seem to delete the desktop shortcut. I am off home now so any ideas overnight are much appreciated.

If @userid = 'smithb'
use t: /delete /persistent
$desktop=readvalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurentVersion\Explorer\User Shell Folders","Desktop")
$file="shortcut to net_share on 'fileserver'(T).lnk"
del $desktop+"\$file"
Endif
_________________________
Any problem encountered is a challenge to overcome.