China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-13 03:13
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Boot Password View 1,066 Replies 2
Original Poster Posted 2007-11-02 18:02 ·  中国 广东 深圳 龙岗区 电信
初级用户
Credits 20
Posts 8
Joined 2007-10-26 09:46
18-year member
UID 100812
Gender Male
Status Offline
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 ]
Floor 2 Posted 2007-11-02 18:26 ·  中国 河北 唐山 联通
银牌会员
★★★
Credits 1,148
Posts 514
Joined 2007-06-01 12:51
19-year member
UID 89959
Gender Male
From 河北
Status Offline
I don’t even know how to write code, I can barely understand this, hehe
Floor 3 Posted 2007-11-03 09:58 ·  中国 广东 深圳 电信
初级用户
Credits 20
Posts 8
Joined 2007-10-26 09:46
18-year member
UID 100812
Gender Male
Status Offline
Sorry, I wrote a few lines of code wrong. They’ve been corrected!
If there’s anything bad about it, please criticize it more.
Forum Jump: