That depends on whether you want to do it the easy way, or the hard way.
Here's the easy way
Dim MakeDirPath as String
Dim a() as String
Dim x as Integer
MakeDirPath = ""
a = Split(Textbox1.txt, "\")
For x = 0 To UBound(a) - 1
MakeDirPath = MakeDirPath + a(x) & "\"
If Dir(MakeDirPath, vbDirectory) = "" Then MkDir Left(MakeDirPath,
Len(MakeDirPath) - 1)
Next x
Or, you can spend an extra half hour, and several lines more and use
FileSystemObject to do the exact same thing.
Rick Rose
-------Original Message-------
From: Brian E Boothe
Date: 10/27/04 16:20:19
To: [EMAIL PROTECTED]
Subject: [vbhelp] textbox Directory
Lets say I have a textbox textbox1.txt
how can I make a directory and the name by the value in the Textbox??
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~->
'// =======================================================
Rules : http://ReliableAnswers.com/List/Rules.asp
Home : http://groups.yahoo.com/group/vbHelp/
=======================================================
Post : [EMAIL PROTECTED]
Join : [EMAIL PROTECTED]
Leave : [EMAIL PROTECTED]
'// =======================================================
Yahoo! Groups Links
.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~->
'// =======================================================
Rules : http://ReliableAnswers.com/List/Rules.asp
Home : http://groups.yahoo.com/group/vbHelp/
=======================================================
Post : [EMAIL PROTECTED]
Join : [EMAIL PROTECTED]
Leave : [EMAIL PROTECTED]
'// =======================================================
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/vbhelp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/