This is a VERY basic way to create a folder
Lets create 1 Combobox, and let a label over it with the text : "Path:"
Under that, make a Label named "Name :" and under that do a Textbox
And Under that make a Button with text Create.
In Combox collection (list) add like "C:\" or "C:\Program Files" or "D:\", just whatever ur drive is.
Double click the Button, we're gonna use filesystem (My.Computer.FileSystem)
Lets create 1 Combobox, and let a label over it with the text : "Path:"
Under that, make a Label named "Name :" and under that do a Textbox
And Under that make a Button with text Create.
In Combox collection (list) add like "C:\" or "C:\Program Files" or "D:\", just whatever ur drive is.
Double click the Button, we're gonna use filesystem (My.Computer.FileSystem)
Code
If My.Computer.FileSystem.DirectoryExists(ComboBox1.Text + "\" + TextBox1.Text) Then
MsgBox("Folder already exists, pick a new name.", MsgBoxStyle.Information, "Folder Exists")
Else
My.Computer.FileSystem.CreateDirectory(ComboBox1.Text + "\" + TextBox1.Text)
End IfIf You Like this tutorial, please check out my other tutorials by clicking ==> H3R3
[img]http://i685.photobucket.com/albums/vv215/blackpearl4/THANKS.gif[/img]
PHP & .NET Contributor.


