code:
use T: /delete /persistent
? 'Deleting mapping to drive letter T: '+@ERROR+' - '+@SERROR


$desktop=readvalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Desktop")
? 'Retrieving location of user's DESKTOP folder in his profile: '+@ERROR+' - '+@SERROR


? 'Users DESKTOP folder is located in '+$desktop
$desktop=expandenvironmentvars($desktop)


? Expanding environment variables (if present) and complete path to user's DESKTOP is '+$desktop

del "$desktop\shortcut to net_share on 'fileserver' (T).lnk"
? "Deleting file """+$desktop+"\shortcut to net_share on 'fileserver' (T).lnk"" :"+@ERROR+" - "+@SERROR

I hope this is extensive enough, if you need an even more detailed explanation, then I would suggest you play around with the examples in the KiXtart manual to understand what each command/function/macro is doing.

[ 06. August 2002, 19:26: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.