Computing.Net > Forums > Programming > Batch not copying 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.

Batch not copying directories

Reply to Message Icon

Name: jabbadoo
Date: February 20, 2007 at 04:21:58 Pacific
OS: Windows XP
CPU/Ram: intel 512mb
Product: intel
Comment:

hello! I have tried to make a batch file that should copy everything in a specific directory to an other... eg.

cd c:\dir\
copy * "c:\dir2\"

now the batch is only copying the files in the directory and not the folders... eg. c:\dir\file.fil will be copied, but not the c:\dir\dir\

can someone help?



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: February 20, 2007 at 05:13:42 Pacific
Reply:

xcopy c:\src c:\dest\ /s


=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: jabbadoo
Date: February 20, 2007 at 05:51:56 Pacific
Reply:

thx, it works


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 Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch not copying directories

Batch file copy and Rename www.computing.net/answers/programming/batch-file-copy-and-rename/18689.html

batch file copy without overwrite www.computing.net/answers/programming/batch-file-copy-without-overwrite/12885.html

BATCH HELP: Copy entire directory www.computing.net/answers/programming/batch-help-copy-entire-directory/13268.html