Hello, I need to write a batch file which will create a few directories inside a given address directory. The user will input the address directory using a wild character to find all directories which match the serach criteria, for example: 115-1* then all directories which match should show up. Then, the user needs to pick which one is the correct address, go to that directory and inside of it create a set of standard directories. I have never written anything in batch so after some figuring out I wrote the following code which actually lists the directories but I don't know how to store the results of the DIR %1 /b into variables (like DIR 1, DIR 2, DIR3... etc...) I know I am on the wrong track.... so if somebody can give me a hand I would appreciated it. Thanks. JMA1DGO Echo off CLS cd \. cd projects SET MyDirectoryList=%CD% dir %1 /b>MyDirectoryList Set /p TOOLOUTPUT= < MyDirectoryList del MyDirectoryList ECHO %TOOLOUTPUT%