orpsys

selecting file location

2 posts in this topic

#1 ·  Posted

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

Share this post


Link to post
Share on other sites



#2 ·  Posted

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

 

 

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