Thursday, April 12, 2012

Copying entire directory to other location using batch file



I want to automate my build process,so I want to write a bat file that does all the copy pasting of libraries for me and do a ANT build of my java project.
Now the problem I am facing is,I have too many nested directories to copy and I tried using copy and Xcopy commands,but these copies only the files and not the Directories/Folders inside other folders.



I read about variations in xcopy but did not get anything similar.



How can I copy entire folder as it is from one location to other using BAT commands??(Similar to what we do using right click or ctrl+c) :P



Thanks

Sachin

S/W Engg

www.optionsconsultancy.com





No comments:

Post a Comment