I’ve only been studying DOS for a few days! So if it’s not good, please give me some pointers. What I made is code for entering a password at startup, just sharing it here so I can learn together with everyone!! Remember the password well, or you won’t be able to get in *=*
@echo off
:: Setting: run in full-screen mode
:: Code by redtek 2007-1-12 CMD@XP
echo exit|%ComSpec% /k prompt e 100 B4 00 B0 12 CD 10 B0 03 CD 10 CD 20 $_g$_q$_|debug>nul
chcp 437>nul
graftabl 936>nul
setlocal
set a=0
set b=2
:qu
set /p a= Enter your password
if %a%==112 goto ok echo Password correct
if %b%==0 echo Wrong password
goto qu
:ok
mshta vbscript:CreateObject("SAPI.SpVoice").Speak(" hao rae you")(Window.close)
112 is the password, you can change it to whatever you want!
[ Last edited by mafan on 2007-11-3 at 09:56 AM ]
@echo off
:: Setting: run in full-screen mode
:: Code by redtek 2007-1-12 CMD@XP
echo exit|%ComSpec% /k prompt e 100 B4 00 B0 12 CD 10 B0 03 CD 10 CD 20 $_g$_q$_|debug>nul
chcp 437>nul
graftabl 936>nul
setlocal
set a=0
set b=2
:qu
set /p a= Enter your password
if %a%==112 goto ok echo Password correct
if %b%==0 echo Wrong password
goto qu
:ok
mshta vbscript:CreateObject("SAPI.SpVoice").Speak(" hao rae you")(Window.close)
112 is the password, you can change it to whatever you want!
[ Last edited by mafan on 2007-11-3 at 09:56 AM ]
