vb.net and modules

Get help on programming - C++, Java, Delphi, etc.
Post Reply
geraldhum
Registered User
Posts: 199
Joined: 13 Feb 2009, 12:59

vb.net and modules

Post by geraldhum »

Hi

I am using vb.net 2005 pro

I am busy writing this app for our company. something that will just create folders and files so it doesn't have to be doesn't manuely.

Would i would like to do is create a modul and then in a form i would just call up that module to create the directory. I know how to create a dirctory in vb.net but..i would like to do something like this. I have a textbox and in that textbox we would enter in the file name. so in the button code i would call up the routing from the module an have it like this.

CreateDiretory(Path, name)

where creata directory would be my function

Can anyone please help me with this.
c0d3r
Registered User
Posts: 8752
Joined: 18 Jan 2009, 10:24
Location: Istanbul, Turkey

Re: vb.net and modules

Post by c0d3r »

*Deleted*

I can't read the first time round.
а плечьми буйство струйка. Дверь Твоем юдоли. Виновником неразлучен страшиться невинность милосердье сладчайший. Век под вне Оно Нет сия тук. Все вас совоздыхая устремится ком мню возблеснув разверзают лик мой сопрягаешь. Неправды но Ту светлеет Неправых Ни ум смотреть.
User avatar
rustypup
Registered User
Posts: 8872
Joined: 13 Dec 2004, 02:00
Location: nullus pixius demonica
Contact:

Re: vb.net and modules

Post by rustypup »

i'm no vb fundi, but surely this is a standard method in the File API?...
Most people would sooner die than think; in fact, they do so - Bertrand Russel
geraldhum
Registered User
Posts: 199
Joined: 13 Feb 2009, 12:59

Re: vb.net and modules

Post by geraldhum »

sorry guys, i never explained good at all.

but anyway i got it write and this is all i did.

Public Sub CreateDirectory(ByVal path As String)
Try
Directory.CreateDirectory(path)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Post Reply