Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
copy files not directories
Name: peter Date: April 3, 2000 at 14:56:55 Pacific
Comment:
How do I copy all files of a certain type from one drive to another WITHOUT copying subdirectories?
I have been using xcopy c:\*.doc g:\word /s but this copies over all the subdirectories as well. I want all the word files copied into just one folder.
Name: Preston Date: April 3, 2000 at 16:15:16 Pacific
Reply:
You wrote "I have been using xcopy c:\*.doc g:\word /s but this copies over all the subdirectories as well. I want all the word files copied into just one folder."
Use the copy command:
copy *.doc g:\word
This would copy all files ending in the .doc to the g: drive, \word directory.
0
Response Number 2
Name: browser Date: April 4, 2000 at 05:16:17 Pacific
Reply:
To follow up, the /s tells it to copy subdirectories. Also /e would tell it to copy empty subdirectories.
0
Response Number 3
Name: peter Date: April 4, 2000 at 14:15:29 Pacific
Reply:
Using your method I would only copy the files that are in the current directory. I want all doc files on the HD.
Also I want all docs to go into one folder with no other folders (subdirectories) created. Xcopy with the /s switch finds all files but also copies the directory structure.
Summary: OK, thanks for the reply .. but please put the remarks about the other program (the one with the 'most recent file on disk') in the other thread .. Cause it is getting complicated .. for both of us. I...
Summary: Using XCOPY, I can manage to copy all the .MP3 files from one drive to a single folder, including the ones in subdirectories. However, a directory structure is created. For instance, if the destinatio...
Summary: Assuming you mean copy and not extract - bit of a difference there. COPY You need to know the drive letters involved, and you need to create a directory (folder) named i386 (or whatever) on the target...