Need help with io create directory
Posted: Tue Nov 20, 2012 6:02 am
Hello i am in need of assistance with very easy problem i can't solve
i am trying to make it create a directory on form load to desktop to make new folder and this is code i have or tried
ehh many fails i am trying to make it make a folder named info onto desktop yea i am kind of tired so the code is an example to show what i am trying to attempt idoit;
i am trying to make it create a directory on form load to desktop to make new folder and this is code i have or tried
Code: Select all
Imports System.IO
Public Class frmlogin
Private Sub frmlogin_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Directory.CreateDirectory("c:\" & System.Environment.UserName \ "desktop")
End Sub
End Class
ehh many fails i am trying to make it make a folder named info onto desktop yea i am kind of tired so the code is an example to show what i am trying to attempt idoit;