Linking 3 batchfiles to run one after another
Posted on 2006-07-18
I have a batch file that xcopys from a folder to another folder.
This is the batch.
xcopy "R:\EChart\H\B*.*" "R:\Chart\Holding"
Then i have a batch file that renames the file that i have xcopied.
Ren R:\Chart\Holding\B*.tif B???????-H.tif
Than i have another batch file that moves the files to another folder.
Move "R:\Chart\Holding\*.*" "R:\Chart\B"
I have to run this for every leter e.g. we have 12 folders a-n and in these folders there are letered A - Z. So i have to copy all the A's fron each of the 12 folders then rename them with the leter of the folder. the mover it to another folder called A. so in this A folder i will have files named A001-A, A001-B, A001-C and so on. Is there a way to run the first batch file and have it go to the next batch file and then run the 3rd batch file. Or could you find to put all 3 in one batch file but i would have to run in order. so i would copy the file then rename the file then move the file and do this over again 26 time for the 12 folders changing the leter each time.
Do you see what i need.