![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-13 04:09 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Boot Password |
| Printable Version 1,067 / 2 |
| Floor1 mafan | Posted 2007-11-02 18:02 |
| 初级用户 Posts 8 Credits 20 | |
|
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 ] |
|
| Floor2 shanliang8008 | Posted 2007-11-02 18:26 |
| 银牌会员 Posts 514 Credits 1,148 From 河北 | |
|
I don’t even know how to write code, I can barely understand this, hehe
|
|
| Floor3 mafan | Posted 2007-11-03 09:58 |
| 初级用户 Posts 8 Credits 20 | |
|
Sorry, I wrote a few lines of code wrong. They’ve been corrected!
If there’s anything bad about it, please criticize it more. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |