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
Related Posts:
- What does %~dp0 mean, and how does it work?
- What does %~dp0 mean, and how does it work?
- Rainbow Matrix CMD
- How to capture cURL output to a file?
- Color echo in batch files
- How Should I Set Default Python Version In Windows?
- How can I pass arguments to a batch file?
- What is the current directory in a batch file?
- How to change current working directory using a batch file
- Invalid drive specification using XCOPY
- Split text file into smaller multiple text file using command line
- Command Prompt Error ‘C:\Program’ is not recognized as an internal or external command, operable program or batch file
- Batch file to copy files from one folder to another folder
- How do I execute cmd commands through a batch file?
- wget not recognized as internal or external command
- How to fix “ERROR: The system was unable to find the specified registry key or value.” when running a batch file
- How do I copy a file in Python?
- How do I copy a file in Python?
- List changes unexpectedly after assignment. Why is this and how can I prevent it?
- What does “@” mean in Windows batch scripts
- How do I copy a folder from remote to local using scp?
- What is the difference between a deep copy and a shallow copy?
- ” is not recognized as an internal or external command, operable program or batch file
- Copying a local file from Windows to a remote server using scp
- How do I copy a file in Python?
- ‘adb’ is not recognized as an internal or external command, operable program or batch file
- Create an empty file on the commandline in windows (like the linux touch command)
- Make copy of an array
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- ” is not recognized as an internal or external command, operable program or batch file
- How to copy a file from one directory to another using PHP?
- Difference between xcopy and robocopy
- How to “comment-out” (add comment) in a batch/cmd?
- How do I copy an object in Java?
- Cleanest way to copy a constant size array in c++11
- Bat file to run a .exe at the command prompt
- How can I create a copy of an object in Python?
- Batch script loop
- How to copy a string of std::string type in C++?
- Fastest way to duplicate an array in JavaScript – slice vs. ‘for’ loop
- How to deep copy a list?
- How do I do a deep copy of a 2d array in Java?
- “npm config set registry https://registry.npmjs.org/” is not working in windows bat file
- Windows Activation Batch (.cmd File
- How to copy files?
- Moving file using cmd?
- How to “comment-out” (add comment) in a batch/cmd?
- “if not exist” command in batch file
- Defining and using a variable in batch file
- Sleep/Wait command in Batch
- How to run PowerShell in CMD
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- While loop in batch
- How to copy a char array in C?
- XCOPY: Overwrite all without prompt in BATCH
- Curl not recognized as an internal or external command, operable program or batch file
- Java Copy Constructor ArrayLists
- Redirecting Output from within Batch file
- How to send a simple email from a Windows batch file?
- How can I run a program from a batch file without leaving the console open after the program starts?
- How to sleep for five seconds in a batch file/cmd
- What does /p mean in set /p?
- Run a batch file with Windows task scheduler
- False ‘Sharing Violation’ Xcopy error message
- batch file from scheduled task returns code 2147942401
- How does the echo command works in batch programming
- In Windows cmd, how do I prompt for user input and use the result in another command?
- CALL command vs. START with /WAIT option
- How can I download a file with batch file without using any external tools?
- BAT file to map to network drive without running as admin
- How to copy a row and insert in same table with a autoincrement field in MySQL?
- Is there a function to make a copy of a PHP array to another?
- Need auto-restart script in batch for minecraft server
- PG COPY error: invalid input syntax for integer
- How to use random in BATCH script?
- Python copy files to a new directory and rename if file name already exists
- MySQL: Cloning a MySQL database on the same MySql instance
- Windows batch – concatenate multiple text files into one
- Batch – If, ElseIf, Else
- How to set commands output as a variable in a batch file
- Batch command for ImageMagick to convert all files in a directory and sub-directories on windows
- Copying HTML code in Google Chrome’s inspect element
- Best practice for exiting batch file?
- how to empty recyclebin through command prompt?
- How to sleep in a batch file?
- How to copy file preserving directory path in Linux?
- How to let ‘cp’ command don’t fire an error when source file does not exist?