kv102t Posted May 15, 2013 Posted May 15, 2013 Lets say we have D:\ with folders named: A B C D etc... (to Z) I want to CD into folder A THEN xcopy subfolder1 here, xcopy subfolder2 there, copy Folder A flat root content files somewhere else, THEN CD.. THEN Move to folder B The process will then start again, until all folders have been completed. I think i need to use a FOR /D Research = Batch for loops - Judago's scripts / console stuff for /d - Loop through directory | SS64.com Any help would be amazing !
kv102t Posted May 15, 2013 Author Posted May 15, 2013 Think i have it... cd d:\ for /d %%A in (*) do ( cd %%A "Hello" > test.txt cd \ ) thanks anyway !
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now