Sign in to follow this  
Followers 0
MyEarth

Create directory structure

4 posts in this topic

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



Quote from the helpfile:

 

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

 

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

#3 ·  Posted (edited)

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!

Share this post


Link to post
Share on other sites

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  
Followers 0