Why are you mapping to drives at all?

If you are member of the local machines admin group (And if you are running in an AD enviroment and are a Domain Admin you are automatically one), you can just copy the file directly via UNC No mapping required. The @error will tell you if was successful or not and generally why (use @Serror)

$Time = @msec
copy c:\fscopy\*.mdb "\\"+$element+"\c$\fsp\mdb" /c /h /r
If not @error
  ;Write error to logfile
$Time = @msec - $time
;Now you have exactly how long it took

Edited by Gargoyle (2006-12-21 04:24 AM)
Today is the tomorrow you worried about yesterday.