Jump to content
orpsys

selecting file location

Recommended Posts

orpsys

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
1957classic

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.