Jump to content

JMA1GDO

Member
  • Posts

    5
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About JMA1GDO

Profile Information

  • OS
    XP Pro x86

JMA1GDO's Achievements

0

Reputation

  1. Yes, I understand. I am now working on how to change to the directory selected when the batch file is finished. After I get this done I will work on error trapping. Thanks again. JMA1GDO
  2. It is working great!!!! thank you so much!! JMA1GDO
  3. Just one more question.... The directories have numbers and letters such as: 115-14 BEACH CHANNEL DRIVE. The code returns only the numbers..... can it me modified to return the complete directory name? Thanks so much!!! JMA1DGO
  4. Thanks a lot!!!! I expect to get between 1-9 directories, no more. thanks again. JMA1GDO
  5. 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%
×
×
  • Create New...