cmd - Batch empty subfolders from folders in a CSV file -
I have a very long list of partial names for folders (each partial is unique to a specific folder); What I'm going to do is to write a batch file to go through every subfolders in each folder, drag the file to the root of that folder, and copy if copied (there are too many duplicates) , Looking back again).
I have used some folders to move other things and use other things, I can not get the code to clear the subfolders.
Batch file 1 (To access CSV for calling other batch to work):
< Code> @echo off for FOR / F token = 1, 3 delims =, "%% g in (Pt1Test.csv) dot blank 1.bat %% Gbatch file2 ( Subfolders are supposed to be empty, then go ahead in the list in the folder):
@echo set to set_uname =% 1 / f " Eol =: delims = "%% F ('Dir / b ^ | find'% _Uname% '')) & lt; Next bit I do not exclude figure & gt;
Even It's getting the command to pull in the main folder.
I know this code works when I'm in the correct dos:
for / r% f (*) Do @move / y "% f"
But my No need to type in for 5000 or more folders, I can not do it for, and I want to remove the duplication.
Thanks for any help!
Tyler
1,3? You are not using 3 (%% H) in your examples.
How about it? Just change each directory and back to your directory. @
A in (*) do @move / y "%% a" popd)
Comments
Post a Comment