Text / Button combo for CREATING a Folder (NT system)

Randomblink

The Irreverent Reverend
Local time
Today, 11:41
Joined
Jul 23, 2001
Messages
279
WOW! This new setup is sweet...!

Ok...on to my query...

I have a form...[frm_Request]
I have a two text boxes...[txt_FolderName] - [txt_FolderLocation]
I would like to do the following...

Have the user enter what name they want their Folder to be in the [txt_FolderName] text field.
Then, there should be a default server / network location in the other text box [txt_FolderLocation] for an example:

W:/wpdata/special/

So, if the user enters: Parks/LaFortunePool
...into the [txt_FolderName] field...
And then they hit the button...
I want to create an empty Folder...
On the Server...
At this location:

W:/wpdata/special/Parks/LaFortunePool

Can Anyone help me here...?

Thanks in advance.
 
Dim Path, Folder as string

Path = Me.txt_FolderLocation
Folder = Me.txt_FolderName

MkDir Path & Folder

You will need to errortrap for this as if it already exists it will fall etc.

HTH
 
Thanks

I haven't had a chance yet to try it out...
But that looks right!

Thank you so much...
 

Users who are viewing this thread

Back
Top Bottom