I am running the following...It works great on a Windows XP Pro pc but errors out on a Windows 2000 Pro pc.

code:
 
IF EXIST ("D:\Build\*.*")
GUICopy("D:\Build\Temp", "%systemdrive%", 528)
GUICopy("D:\Build\SP3", "%systemdrive%", 528)
ENDIF

function GUICopy($Source, $Destination, $Flags)
$objShell=CreateObject("Shell.Application")
$objFolder=$objShell.NameSpace($Destination)
$objFolder.CopyHere($Source, $Flags)
$objShell=0
endfunction


I get an error that says...

Script error: expected expression!
$objFolder.CopyHere($Source, $Flags)