Thank you Pegasus! I had tried many variations of xcopy commands, but didn't
realize I needed the /s parameter.
"Pegasus (MVP)" <I.can@xxxxxx> wrote in message
news:%23e10ifJNJHA.4240@xxxxxx
>
> "D.P. Roberts" <dproberts@xxxxxx> wrote in message
> news:%2345tnaJNJHA.468@xxxxxx
>> I've been racking my brains over this one - seems like it should be so
>> easy but I haven't been able to do it using copy, xcopy, or anything
>> else.
>>
>> I need to copy all .html files within a directory and its subdirectories.
>> Anyone know how to do this in vbs or from a command prompt?
>>
>> Thanks. >
> How about this command?
> xcopy /s /c /y "c:\My Files\*.html" "c:\My Destination\"
>
> Type xcopy /? at the Command Prompt to see its many switches.
>