|
Answer» Hey, I NEED some help with a .bat program.
I need to code a script that will COPY all the files in a certain directory and paste them to ANOTHER specified directory.
So for example, the user will be prompted with the .bat file asking what the full path to the directory of the files are. Then it will copy all the files in that directory and paste them into C:\directory_name_here.
Thanks in advance.
@echo off cd %1 copy %2\*.* cls
Syntax
program.cmd c:\myfiles c:\morefilesDoesn't that just copy the directories? I need to copy the files in the directory to another directoryno it copys the files
change directory to %1 , or C:\myfiles copy %2\*.* or C:\morefiles\*.* clearscreen
to copy too copy from %0 %1 %2 | | Program.cmd C:\myfiles c:\morefiles
|