Jump to content

Recommended Posts

Posted

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

  • Developers
  • Solution
Posted

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.
  :)

  • Moderators
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

"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!

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
  • Recently Browsing   0 members

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