Look into xcopy, which will recursively copy files and subdirectories.
There are examples, 2/3 down the page. Of particular use is:
To copy all the files and subdirectories (including any empty subdirectories) from drive A to drive B, type:
xcopy a: b: /s /e
More Related Contents:
- How to Copy (and increment) Multiple Instances of a File Using Batch File
- edit 2500 text files to add three decimal places for integer number and decimal number where you can find after @x*
- What are the undocumented features and limitations of the Windows FINDSTR command?
- Why does delayed expansion fail when inside a piped block of code?
- Ignore percent sign in batch file
- Make an environment variable survive ENDLOCAL
- Error: “is not recognized as an internal or external command, operable program or batch file”
- How to read file contents into a variable in a batch file?
- How to receive even the strangest command line parameters?
- Adding the current directory to Windows path permanently
- How do I write a Windows batch script to copy the newest file from a directory?
- What does :: (double colon) mean in DOS batch files?
- How to use if – else structure in a batch file?
- How can a batch file run a program and set the position and size of the window?
- How can I get the value of a registry key from within a batch script?
- How to get and display yesterday date?
- How to search and replace a string that have an equal-to sign “=” inside
- How to make .BAT file delete it self after completion?
- Arithmetic operations with HH:MM:SS times in batch file
- Open a URL without using a browser from a batch file
- Specify the size of command prompt when executing a batch file
- PowerShell display files size as KB, MB, or GB
- Does Windows batch support exception handling?
- Get java version from batch file
- Bat file to delete files only when younger files are present
- Less than or equal to
- My Batch File keeps looping, but why?
- Batch file for PuTTY/PSFTP file transfer automation
- Call a subroutine in a batch from another batch file
- How do I create a batch file timer to execute / call another batch throughout the day