How to copy some files to batch file directory?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Mohammad_Dos
Posts: 84
Joined: 08 Sep 2010 10:25
Location: Iran,Kashan
Contact:

How to copy some files to batch file directory?

#1 Post by Mohammad_Dos » 20 Nov 2010 04:36

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

!k
Expert
Posts: 378
Joined: 17 Oct 2009 08:30
Location: Russia

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

#2 Post by !k » 20 Nov 2010 11:03

Code: Select all

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

Mohammad_Dos
Posts: 84
Joined: 08 Sep 2010 10:25
Location: Iran,Kashan
Contact:

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

#3 Post by Mohammad_Dos » 20 Nov 2010 12:14

thank u

Post Reply