This Command Prompt makes a user sign up then sign in to get the command prompt
in the command prompt type "red", "green", or "normal" without quotes and it changes the color
in the command prompt type "red", "green", or "normal" without quotes and it changes the color
@echo off:hometitle Log in to CMDcolor 07clsecho.echo Cmd Accountsecho =============echo.echo [1] Log Inecho [2] Sign Upecho [3] Exitecho.set /p op=if %op%==1 goto 1if %op%==2 goto 2if %op%==3 goto 3goto error:2clsecho Sign Upecho ======================================echo.set /p newname="Enter new username:"if "%newname%"=="%newname%" goto inputname:inputnamecd "%userprofile%\documents"if exist "cmdacoBin" goto skipif not exist "cmdacoBin" goto noskip:noskipmd "cmdacoBin"goto skip:skipcd "%userprofile%\documents\cmdacoBin"if exist "%newname%.bat" goto namexistif not exist "%newname%.bat" goto skip2:skip2echo set realusername=%newname%> "%newname%.bat"goto next:nextecho.set /p pswd=Enter new Password:if "%pswd%"=="%pswd%" goto inputpass:inputpasscd "%userprofile%\documents\cmdacoBin"echo set password=%pswd%>> "%newname%.bat"goto next1:namexistecho.echo The entered username already exists.echo Press any key to return. . .pause >nulgoto 2:next1clsecho Cmd Accountsecho ============echo.echo Your account has been successfully created!echo.pausegoto home:1color 07clsecho Cmd Accounts Log Inecho ================================echo.Set /p logname=Username:if "%logname%"=="%logname%" goto 2.1:2.1echo.set /p logpass="Password:"if "%logpass%"=="%logpass%" goto login:logincd "%userprofile%\documents\cmdacoBin"if exist "%logname%.bat" goto callif not exist "%logname%.bat" goto errorlog:callcall "%logname%.bat"if "%password%"=="%logpass%" goto logdonegoto errorlog:errorlogcolor 0cecho.echo Username or Password incorrect.echo Access denied.pause >nulgoto home:logdoneclsecho Command Promptecho ==============echo.echo Successfully logged in!echo.pausegoto account:accountclscd "%userprofile%\documents\cmdacoBin"call "%realusername%color.bat"call "%realusername%.bat"color %colorcode%clsecho.echo -------------------------------------------------------------------------------echo %realusername%echo -------------------------------------------------------------------------------@echo offbreak offTitle Command Promptcolor 0aclsecho Type "home" any time to go to the current user profile directory.echo Type "desktop" any time to go to the current user desktop.echo.echo Type help to see list of common commands like cd, rd, md, del,echo ren, replace, copy, xcopy, move, attrib, tree, edit, and cls.echo Type [command]/? for detailed info.echo.pausecls:cmdecho Directory: %CD%set /P CMD=Command:if "%CMD%" == "cls" goto clsif "%CMD%" == "home" goto home2if "%CMD%" == "desktop" goto desktopif "%CMD%" == "red" goto redif "%CMD%" == "green" goto greenif "%CMD%" == "normal" goto normal%CMD%cd C:\goto cmd:clsclsgoto cmd:home2cd /d %USERPROFILE%clsgoto cmd:desktopcd /d %SystemDrive%\Users\%USERNAME%\Desktopclsgoto cmd:redcolor 0cclsgoto cmd:greencolor 0aclsgoto cmd:normalcolor 07clsgoto cmd
0 comments:
Post a Comment
ये पोस्ट आपको कैसा लगा इस बारे में कमेंट बॉक्स में अपनी राय जरुर लिखे। यदि ये पोस्ट आपको बेहतर लगा हो तो इसे Like करें और अपने दोस्तों में share करें।
प्रिय मित्र, आप इसी तरह इस ब्लॉग से जुड़े रहे।
धन्यवाद