Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
jappababapa
- Posts: 1
- Joined: 29 Nov 2014 04:53
#1
Post
by jappababapa » 29 Nov 2014 04:55
Looking to batch copy a list of files from a text list, recursively through all sub-directories please.
I have a working batch for a single directory - just need the recursive added, if possible.Looking to batch copy a list of files from a text list, recursively through all sub-directories please.
I have a working batch for a single directory - just need the recursive added, if possible.Looking to batch copy a list of files from a text list, recursively through all sub-directories please.
I have a working batch for a single directory - just need the recursive added, if possible.

-
penpen
- Expert
- Posts: 2009
- Joined: 23 Jun 2013 06:15
- Location: Germany
#2
Post
by penpen » 02 Dec 2014 17:03
jappababapa wrote:I have a working batch for a single directory - just need the recursive added, if possible.Looking to batch copy a list of files from a text list, recursively through all sub-directories please.
If your working batch file is named "your.bat" and takes the single directory as a parameter, then you may create another batch like the following (tested on winxp 32 bit):
Code: Select all
@for /D /R "." %%a in (.) do @call "your.bat" "%%~a"
(This batch processes all subdirectories of the current directory.)
penpen