ShiftOS-TheRevival-Old/ShiftOS-TheRevival/TerminalApplications/Internal/Com_Rmdir.vb

13 lines
444 B
VB.net

Module Com_Rmdir
Public Sub RemoveDir(TheDirectory As String)
If IO.Directory.Exists(Console.CurrentDirectory + "\" + TheDirectory) Then
Try
IO.Directory.Delete(Console.CurrentDirectory + "\" + TheDirectory)
Catch ex As Exception
NewLine(ex.Message)
End Try
Else
NewLine("The directory is not exists!")
End If
End Sub
End Module