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

13 lines
422 B
VB.net

Module Com_Username
Public NewUsername As String
Public Sub Username()
NewUsername = command.Substring(command.LastIndexOf(" ") + 1, command.Length - (command.LastIndexOf(" ") + 1))
If NewUsername = "" Then
NewLine("A username should not be blank")
Else
Strings.ComputerInfo(1) = NewUsername
End If
Terminal_AssignPrompt()
End Sub
End Module