Kane,

You should probably use the following to define the Desktop..

code:

$UserDesktop = READVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop")

$AllUsersDesktop = READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Common Desktop")


Or, you can use Shawn's cool Shorcut script! If you use it, you can use the following WMI Methods:

code:

$shell = createobject("wscript.shell")
$desktop = $shell.specialfolders("Desktop")

Have Fun!

- Kent

[ 07 January 2002: Message edited by: kdyer ]

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's