MSDOS - Using DOS COPY Command



Copy all files from one folder to another

#rem source = c:\syntaxhelp
#rem target = d:\demo

COPY c:\syntaxhelp\*.* d:\demo

Copy all files from one folder to another, suppress any prompts (such as overwrite prompt if the file already exists)

#rem source = c:\syntaxhelp
#rem target = d:\demo

COPY c:\syntaxhelp\*.* d:\demo /y

Merge the content of all the text files on one folder into a single target text file

#rem source = c:\syntaxhelp

COPY c:\syntaxhelp\*.txt c:\syntaxhelp\combined.txt

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.