![]() |
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-12 06:27 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Not proficient in using DOS! Spent several hours to achieve selective shutdown! |
| Printable Version 2,056 / 0 |
| Floor1 yangdao | Posted 2012-12-07 22:03 |
| 新手上路 Posts 5 Credits 12 | |
|
@echo off
if exist 19900718.txt del 19900718.txt&goto c echo yang_dao>19900718.txt start a.bat set tt=20 :a mode con cols=50 lines=10&color 0f cls&title %tt% echo after %tt%&echo the computer will be shutdown!!! if %tt%==0 shutdown -s -t 3&exit if exist 19891206.txt del 19891206.txt&exit set var=%time:~7,1% :b set num=%time:~7,1% if %var%==%num% (goto b) else (set var=%time:~7,1%) set /a tt-=1 goto a :c mode con cols=50 lines=3&color 0c echo Do you want to do that?&echo 1-YES 2-NO set choice= set /p choice=please change 1/2 and enter if /i '%choice%'=='1' exit if /i '%choice%'=='2' goto shutdown -a&echo yang_dao>19891206.txt&exit exit |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |