$FileName = Dir("K:\Production\Truck\*.*") While $FileName <> "" AND @ERROR = 0
If Right($filename,3) <> ".txt"
? $FileName
Run xcopy K:\production\Truck\ c:\Truck\ /I /D /Y
EndIf $FileName = Dir() ; retrieve next file
Loop

Something's going wierd on me. FYI this is for 98 machines.

Script error: unknown or unexpected command
[K:\Production\Truck]!
Run Xcopy K:\Production\truck\ C:\truck\ /d

I've tried it without \ at the end, wild cards. Still the same error. This also happend when I tried to use xxcopy.

Any other thoughts?