Batch Anyone Wanna Help Please?
So I am Coding A Simple CMD App To where You Can Talk To Your PC, But I Want to Make It To Where You Have To Type A Unique Password In Order To Use It, So If They Type In The Password Wrong It Will Say Wrong Password......
Here Is What I Have Done With The Passwords So Far.....
@echo off :startapp cls echo What Do You Want To Do? echo 1) Use This App echo 2) Exit App set /p whatwant= if %whatwant% == 1 goto intro if %whatwant% == 2 goto exit :intro cls echo Hello, welcome to Forerunner pause > NUL echo. echo Forerunner Is Nothing Special, It Is Just A Simple Application, Constructed In Notepad.... pause > NUL echo. echo Before You Can Continue, You Must Agree To The Terms Of Use.... (Yes Or No) set /p doyou= if %doyou% == yes goto agree if %doyou% == no goto startapp :agree cls echo Forerunner Is A Application Made By Alex Beare(TechSniper330) Himself..... If Anyone shall Copy This MasterPiece They Shall Be Fined A Million Gazillion Monopoly Dollars.... Also You Must Obtain A Product Key To Use This Software, which can be obtained by contacting Alex Beare, at shredder1224@hotmail.com there are two versions of this software, Lite and Professional, Which Each Contain Seperate Unique Product Keys..... pause > NUL echo. echo Do You Agree? (Say Yes Or No....) set /p agree= if %agree% == yes goto activation if %agree% == no goto whatever :activation cls echo Please Type Your Unique 25 Digit Product Key To Activate This Software...... set /p prodkey= if %prodkey% == 6419s22q319wed1u7kw44d391 goto suceed1 if %prodkey% == h26b32yt6232v67xb62h16db7 goto suceed2 if %prodkey% == q6j39s92j28hd891h9123he80 goto suceed3 if %prodkey% == ILOVEcATSILoveDogsILoveME goto suceed4 if %prodkey% == k2772g272t127tg7812t78216 goto suceed5 if %prodkey% == h72n89921h189y82h8921y912 goto suceed6 if %prodkey% == else goto exit
I Was Hoping The ELSE Would Work, But It Did Not
@echo off :startapp cls echo What Do You Want To Do? echo 1) Use This App echo 2) Exit App set /p whatwant= if %whatwant% == 1 goto intro if %whatwant% == 2 goto exit :intro cls echo Hello, welcome to Forerunner pause > NUL echo. echo Forerunner Is Nothing Special, It Is Just A Simple Application, Constructed In Notepad.... pause > NUL echo. echo Before You Can Continue, You Must Agree To The Terms Of Use.... (Yes Or No) set /p doyou= if %doyou% == yes goto agree if %doyou% == no goto startapp :agree echo. cls echo Forerunner Is an Application Made By Alex Beare(TechSniper330) Himself..... If Anyone shall Copy This MasterPiece They Shall Be Fined echo.A Million Gazillion Monopoly Dollars.... pause > NUL echo. echo Also You Must Obtain A Product Key To Use This Software, which can be obtained by contacting Alex Beare, at shredder1224@hotmail.com pause > NUL echo. echo there are two versions of this software, Lite and Professional, Which Each Contain Seperate Unique Product Keys..... pause > NUL echo. echo Do You Agree? (Say Yes Or No....) set /p agree= if %agree% == yes goto activation if %agree% == no goto whatever :activation cls echo Please Type Your Unique 25 Digit Product Key To Activate This Software...... set /p prodkey= if %prodkey% == 6419s22q319wed1u7kw44d391 goto success1 if %prodkey% == h26b32yt6232v67xb62h16db7 goto success2 if %prodkey% == q6j39s92j28hd891h9123he80 goto success3 if %prodkey% == ILOVEcATSILoveDogsILoveME goto success4 if %prodkey% == k2772g272t127tg7812t78216 goto success5 if %prodkey% == h72n89921h189y82h8921y912 goto success6 if %prodkey% == else goto exit :success1 cls echo you entered the first key pause> NUL :success2 cls echo you entered the second key pause> NUL :success3 cls echo you entered the third key pause> NUL :success4 cls echo you entered the forth key pause> NUL :success5 cls echo you entered fifth key pause> NUL :success6 cls echo you entered the sixth key pause> NUL here is the fixed code
Join our real-time social learning platform and learn together with your friends!