![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Copy one file type from entire directory? 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. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Copy one file type from entire directory? "D.P. Roberts" <dproberts@xxxxxx> wrote in message news:%2345tnaJNJHA.468@xxxxxx Quote: > 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. xcopy /s /c /y "c:\My Files\*.html" "c:\My Destination\" Type xcopy /? at the Command Prompt to see its many switches. |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Copy one file type from entire directory? 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 Quote: > > "D.P. Roberts" <dproberts@xxxxxx> wrote in message > news:%2345tnaJNJHA.468@xxxxxx Quote: >> 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. > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Read a line from a text file, without loading the entire file inmemory | PowerShell | |||
| You need permission to perform this action!! to copy a file to a directory with Admin rights | Vista security | |||
| Display actual file type, not description of the type | Vista file management | |||
| How to copy file to top level directory | Vista General | |||
| Installing an Application copies entire CD to temp directory | Vista performance & maintenance | |||