sjprince2010
2011-09-15 07:15:28 UTC
When a command buttont clicked, a directory (NewDirectory) will be created on the application directory (where the application is located)
I've tried the following code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
My.Computer.FileSystem.CreateDirectory(
":\\appDir\NewDirectory")
End Sub
--------------------
But its not working, showing error.
i think something wrong here (":\\appDir\NewDirectory")
Can anyone please tell me how to indicate the application direcory or application path???