Jump to content
Sign in to follow this  
MyEarth

Create directory structure

Recommended Posts

MyEarth

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

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
JLogan3o13

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

√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
MyEarth

Thanks, i didn't understand it :sweating:

Share this post


Link to post
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
Sign in to follow this  

×