Process.Start 이용한 네트워크 드라이브 연결

교교 2014.04.24 08:40:09 *: Public Class Form1

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Process.Start("cmd", "/c NET USE M: \\192.168.137.117\vb_test /PERSISTENT:YES")
End Sub

Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
Process.Start("cmd", "/c net use M: /del")
End Sub
End Class
Process.Start("cmd", "/c NET USE S: \\192.168.0.100\폴더명 사용자암호 /USER:아이디 /PERSISTENT:YES")