View Full Version : Batch file help
Blue_Gundam2002
12-04-2004, 02:07 PM
I'm trying to make a batch file to copy a folder and all of its files and sub-folders, but I can't figure out how to do it since the copy command only copies files. Does anyone know how I can do this?
mikezel
12-04-2004, 02:16 PM
You are going to want to use the XCOPY command with the /y /e or /s switches. Probably something like this:
XCOPY [source] [destination] /Y /E
If you don't want to copy empty directories, then replace /E with /S.
heres a helpful link: http://www.robvanderwoude.com/index.html
mike
Blue_Gundam2002
12-04-2004, 02:22 PM
works great
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.