Computing.Net > Forums > Disk Operating System > copy files not directories

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

Reply to Message Icon

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.

Is this possible?



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: copy files not directories

copying files to one directory www.computing.net/answers/dos/copying-files-to-one-directory/12450.html

Copying Files? www.computing.net/answers/dos/copying-files/11123.html

copy files from crrom to hdd (no os www.computing.net/answers/dos/copy-files-from-crrom-to-hdd-no-os/14804.html