Batch to parse dirs move files

calmchess January 31, 2009 at 11:19:19
Specs: Windows XP
I'm trying to create a batch file that gets all the subdirectories in a folder and moves all the files contained inside into a single folder here is what i have so far but it doesn't work.

See More: Batch to parse dirs move files

Report •


#1
February 2, 2009 at 07:59:45
Command Scripts are good for few things. Basic file management just happens to be one of them.
for /d /r "copyFrom" %%a in (*) do copy "%%a" "copyTo"


Report •

#2
March 27, 2009 at 06:14:21
Hi Razor2.3,
Please can you advise what does "%%a" means

I am getting an error %%a was unexpected at this time.
Thanks


Report •

Related Solutions


Ask Question