|
Answer» hey can any1 improve this code?
@echo off color f1 TITLE Admin Account Creation echo. echo. set /P a= Set Username: @echo off cls echo. echo. set /p a= Set Password: ECHO Username: %a% ECHO Password: %b% DATE /T PAUSE net user %a% %b% /ADD net localgroup /ADD administrators %a% msg * Account Creation Successfull
[highlight]@echo off color 0a TITLE Admin Account Creation echo. echo. set /p a= Set Username: @echo off cls echo. echo. set /p b= Set Password: ECHO Username: %a% ECHO Password: %b% DATE /T PAUSE net user %a% %b% /ADD >NUL net localgroup /ADD administrators %a% msg * Account Creation Successfull [/highlight] =) @echo off color 0a TITLE Admin Account Creation echo. echo. set /p a= Set Username: @echo off cls echo. echo. set /p b= Set Password: ECHO Username: %a% ECHO Password: %b% DATE /T PAUSE net user %a% %b% /ADD >NUL net localgroup /ADD administrators %a% set /p reply=Account Creation Successfull And the color chould be 0f @echo off [highlight]color 0f [/highlight] TITLE Admin Account Creation
net localgroup /ADD administrators %a% [highlight]set /p reply=Account Creation Successfull [/highlight]
small changes but its nicer this way ok amillion times better way sory for the /p a= set ursername and the U know the /p a-set password that was a MISTAKE by accident LOL
@echo off color f1 TITLE Admin Account Creation echo. echo. set /p a= Set Username: set /p b= Set Password: echo. PING Insert 7=(8-1) SECOND delay echo. ECHO Username: %a% ECHO Password: %b% DATE /T TIME /T pause net user %a% %b% /ADD /expires:never net localgroup /ADD "Administrators" %a% msg * Account Creation Successfull exit
|