Forgot to add the "\" after %systemdrive%. I guess XP was just smart enough to figure it out.

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