Dear,

It is possible to catch the actual location by registry keys.
An extraction from one our windows environments:
code:
REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"Desktop"="C:\\WINDOWS\\Desktop"
"Personal"="C:\\My Documents"
"Programs"="C:\\WINDOWS\\Start Menu\\Programs"
"Start Menu"="C:\\WINDOWS\\Start Menu"
"Startup"="C:\\WINDOWS\\Start Menu\\Programs\\StartUp"

With following code you can copy f.e. shortcuts to your desktop:
code:
$desktop=ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop")
COPY "\\server\netlogon\program.lnk" "$desktop" /H

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA