Jump to content

selecting file location


 Share

Recommended Posts

hi all,

i am trying to write a script to create folders in a user specified location.

i am using the FileSelectFolder function to get the location (based on the help example )and dircreate to make the folder.

 Local $sFldr3 = "SELECTED LOCATION \Test1\Folder1\Folder2\

 DirCreate($sFldr3)

my question is how do i take the selected location and create new folders in this selected location using dir create

 

thanks

Link to comment
Share on other sites

If I understand the question right, you want to add the folders to an existing folder...

#include <MsgBoxConstants.au3>

    $sFileSelectFolder = FileSelectFolder("Select a folder", "")
    If @error Then
        MsgBox($MB_SYSTEMMODAL, "", "No folder was selected.")
    Else
        DirCreate($sFileSelectFolder & "\Test1\Folder1\Folder2")
    EndIf

 

 

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