Computer Hope

Microsoft => Microsoft DOS => Topic started by: 19BigAl49 on January 11, 2010, 06:05:31 AM

Title: using a batch file to read a directory to start/stop programs within that dir
Post by: 19BigAl49 on January 11, 2010, 06:05:31 AM
how do I do this?
There is a father folder with several child folders within it.
I want to :
1. get the name of the first child folder
2. modify the path name of a second batchfile by inserting the child folders name into it.
3. execute the modified second batch file name.
4. if there are more child folders go to 1.
5. else end
In effect the first batchfile executes a program which will then execute a program within each of the child directories