Computing.Net > Forums > Programming > Batch to parse dirs move files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch to parse dirs move files

Reply to Message Icon

Name: calmchess
Date: January 31, 2009 at 11:19:19 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: February 2, 2009 at 07:59:45 Pacific
Reply:

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"


0

Response Number 2
Name: Anto2000
Date: March 27, 2009 at 06:14:21 Pacific
Reply:

Hi Razor2.3,
Please can you advise what does "%%a" means

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch to parse dirs move files

Batch to compare and move files www.computing.net/answers/programming/batch-to-compare-and-move-files/13491.html

Batch file to parse log www.computing.net/answers/programming/batch-file-to-parse-log/16414.html

Batch to parse .txt for words www.computing.net/answers/programming/batch-to-parse-txt-for-words/16839.html