Trish...
This example should copy all files excluding those with a txt extension...
code:
$Source="K:\Production\Truck"
$Target="C:\Truck"
$Exclude="txt"
;
$FileName = Dir($Source)
While $FileName <> "" and @ERROR = 0
If Right($Filename,3) <> $Exclude
Copy $Source+"\"+$Filename $Target
EndIf
$FileName = Dir()
Loop



[ 15. January 2003, 22:26: Message edited by: Waltz ]
_________________________
We all live in a Yellow Subroutine...