1.

Solve : Simpilar way of loops?

Answer»

Is there a simplier and shorter WAY to do the follow:

@ECHO on
echo Creating 4 directories in the root
cd \
md 1 dir
md 2 dir
md 3 dir
md 4 dir

pause

I don't what to be typing in 1 dir 2 dir ..... Can i set a condition? I did c++ over 10 yrs ago however recall the i++ incremental function so i COULD use it in IF and While statements

Sencondly, is it possible if i create a txt file with the folder names and get the batch file to read a line at a time and input it into the batch file and do something with that string i.e. If i what to create a dir NAMED (entry from txt file)



Discussion

No Comment Found