|
-
Oct 5th, 2000, 11:57 AM
#1
Thread Starter
Frenzied Member
I have a text box,a dir and a drive on my form and
i would like to know if someone have a little function to
check if the path entered in the text box is valid,if not ask the user to create it and if he say yes:the dir should be on the new folder???
-
Oct 5th, 2000, 12:26 PM
#2
Addicted Member
Code:
---------------------------
If Dir(Trim(Text1.Text),vbDirectory)="" Then
If MsgBox("The directory does not exist. Do you want to create it?",vbYesNo+vbQuestion,"")=vbYes Then
MkDir Trim(Text1.Text)
End If
End If
--------------------------
Visual Basic Professional 6.0
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|