Page 1 of 1

How to copy some files to batch file directory?

Posted: 20 Nov 2010 04:36
by Mohammad_Dos
Hi. How to copy some files to directory that runing batch file is in it?

for example I runed a batch file and want copy all files in "D:\new Folder\Pic" to batch file directory

Re: How to copy some files to batch file directory?

Posted: 20 Nov 2010 11:03
by !k

Code: Select all

copy "D:\new Folder\Pic\*.*" "%~dp0"

Re: How to copy some files to batch file directory?

Posted: 20 Nov 2010 12:14
by Mohammad_Dos
thank u