E
emanuel.levy
I need to copy a few thousand files from one directory into sub
directories. They are named in the format
aabbbb-cc-ddddd.zip
I have to following script which when run specifying the last two
digits of bb mopves the files into the right folder. The problem is I
have over 10000 files going from 2206 on up.
I'l like to have it loop after it moves all aabbbb's and add 1 to the
bbbb so it continues to cycle untle the original folder is empty
Here is my current code
mkdir cd22%1
cd cd22%1
dir ..\..\cd22%1-*.*
move ..\..\cd22%1-*.* .
cd ..
I run it by typing doit and the last 2 numbers I want
directories. They are named in the format
aabbbb-cc-ddddd.zip
I have to following script which when run specifying the last two
digits of bb mopves the files into the right folder. The problem is I
have over 10000 files going from 2206 on up.
I'l like to have it loop after it moves all aabbbb's and add 1 to the
bbbb so it continues to cycle untle the original folder is empty
Here is my current code
mkdir cd22%1
cd cd22%1
dir ..\..\cd22%1-*.*
move ..\..\cd22%1-*.* .
cd ..
I run it by typing doit and the last 2 numbers I want