-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm1.vb
22 lines (20 loc) · 1.12 KB
/
Form1.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Public Class Form1
Public filepath As String
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim pathname As String = TextBox1.Text
Dim foldername As String = TextBox2.Text
Dim command As String = "cd " + pathname + " & md " + foldername + " & cd " + foldername + " & md greenscreen depth normal & cd.. & move greenscreen* " + foldername + "/greenscreen & move depth* " + foldername + "/depth & move normal* " + foldername + "/normal & exit"
Shell("cmd.exe /k" + command)
Shell("cmd.exe /k" + "msg %username% Folder created sucessfully & exit")
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim dialog As New FolderBrowserDialog()
dialog.RootFolder = Environment.SpecialFolder.Desktop
dialog.SelectedPath = "C:\"
dialog.Description = "Select Application Configeration Files Path"
If dialog.ShowDialog() = Windows.Forms.DialogResult.OK Then
filepath = dialog.SelectedPath
End If
TextBox1.Text = filepath
End Sub
End Class