Batch file to create a bunch of folders Under directory "Applications"


  1. Posts : 138
    Windows 10 Pro
       #1

    Batch file to create a bunch of folders Under directory "Applications"


    I have the following batch file to create several directories under the main directory "Applications" on the A Drive. Here is the batch file's contents!
    @ECHO OFF
    :START

    MD " A:\Graphics"
    CD Graphics
    MD converter
    CD A:\Editor
    MD "VIDEO"
    cd Video
    Converter
    Editor
    Renamer
    cd Renamer
    md filebot

    What do I need to put at the top in order to go to the A Drive so I can make all these folders? John
      My Computer


  2. Posts : 840
    Windows 7
       #2

    You're allowed to create an entire subfolder's path from scratch.
    Code:
    MD A:\Graphics\converter
    MD A:\Editor\VIDEO\Converter
    MD A:\Editor\VIDEO\Editor
    MD A:\Editor\VIDEO\Renamer\filebot
      My Computer


  3. Posts : 138
    Windows 10 Pro
    Thread Starter
       #3

    It doesn't matter what partition your on that will work on the A: drive? Say if the file was on the E: driver and I wanted to make everything on the A: drive?
      My Computer


  4. Posts : 840
    Windows 7
       #4

    You're specifying an absolute path, so it doesn't matter if your CMD or script is running from a different working directory or drive letter.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:20.
Find Us




Windows 10 Forums