Jump to content

Create directory structure


MyEarth
 Share

Go to solution Solved by Jos,

Recommended Posts

Hi, i'd like to know ho to create subofolder of subfolder in autoit.

Example, i have a starting path:

C:\MyFolder

And i want to add three subdirectory, example with the same name:

C:\MyFolder\MyFolder\MyFolder\MyFolder

I need to use DirCreate in a loop, but i don't know where to start for make the subdir maybe is more easy then seems

Link to comment
Share on other sites

  • Developers
  • Solution

Quote from the helpfile:

 

Remarks This function will also create all parent directories given in "path" if they do not already exist.

 

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Moderators

You can start from a high level if you need to:

DirCreate("C:\Users\Hades\Desktop\Test\Test1\Test2\Test3")

This will create the folder Test, the subfolder Test1, the sub-subfolder Test2, and the sub-sub-subfolder Test3, all with a single line.

 

Edit: Too slow :)

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...