![]() |
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-11-10 21:36 |
47,815 topics / 349,930 posts / today 0 new / 48,291 members |
| DOS批处理 & 脚本技术(批处理室) » [Attention] Batch Processing Diagnosis Special Room |
| Printable Version 19,505 / 172 |
| Floor166 defrag | Posted 2005-04-23 00:00 |
| 中级用户 Posts 570 Credits 456 | |
|
Please write an interface like this:
|----------------------------------------------| | -- | Windows3.x | V | |----------------------------------------------| | | | | | | | | |==============================================| | || || || || || | |==============================================| |
|
| Floor167 freelow | Posted 2005-04-25 00:00 |
| 初级用户 Posts 4 Credits 129 | |
|
It's very hard to find study materials for BAT, they're all scattered bits and pieces
|
|
| Floor168 dodo5208 | Posted 2005-04-28 00:00 |
| 初级用户 Posts 1 Credits 102 | |
|
Can anyone use DOS commands to help me write a ZIP self-extracting program, one that can compress about 120 sets of pictures in about 3 minutes, that kind of program, with very high efficiency. Thanks. My QQ: 116294929
|
|
| Floor169 defrag | Posted 2005-05-21 00:00 |
| 中级用户 Posts 570 Credits 456 | |
|
Moderator, this is the content of my autoexec.bat file (please diagnose it together with the file in the config.sys clinic): @ECHO
OFFgoto %config%:KVD2003@ECHO OFFset EXPAND=YESSET DIRCMD=/Nclspath=a:\;CLSECHO.ECHO This is a KV2003 2003-6-30 5M DOS Edition !ECHO.ECHO Kvd2003 32bit version 7.01.213 (DOS32V)echo.echo Make by ** Shadowman **echo. echo -----------------------------------------------------------------------------KVD2003:JMHDFIXJMHDFIX@ECHO OFF configs$=environ$("config" ![]() gosub configs$ end KVD2003: environ "EXPAND"="YES" environ "DIRCMD"="/N" cls environ "path"="a:\;" CLS ? ? " This is a KV2003 2003-6-30 5M DOS Edition !" ? ? " Kvd2003 32bit version 7.01.213 (DOS32V)" ? ? " Make by ** Shadowman **" ? ? "-----------------------------------------------------------------------------" SHELL "KVD2003" RETURN JMHDFIX: SHELL "JMHDFIX" RETURN |
|
| Floor170 6622186 | Posted 2007-03-03 11:44 |
| 高级用户 Posts 411 Credits 894 | |
|
Ru Shi Master's poem, was it written by yourself? The artistic conception is very high, and the wording is very interesting too.
|
|
| Floor171 6622186 | Posted 2007-03-03 11:54 |
| 高级用户 Posts 411 Credits 894 | |
|
I think once you understand the commands if, for, and set, that's about enough. Unfortunately I just can't completely understand them. Depressing!
|
|
| Floor172 ZJHJ | Posted 2007-03-04 04:18 |
| 高级用户 Posts 374 Credits 609 | |
|
I wrote a 30-day trial period checking program. Why does it close the bat window when run in August, September, or on the 8th or 9th of any month?
The program is as follows: @echo off :: 30-day trial period check yc wangwei070116 :: Write original date if exist YRQ.TXT goto A @echo %date%>YRQ.TXT :A :: Write current date @echo %date%>xRQ.TXT :: Get current date FOR /F %%j IN (xRQ.TXT) DO SET xrq=%%j set _xrq_bt=%xrq% set /a xrq_bt=%_xrq_bt:~8,2% :: Get current month set /a xyq_bt=%_xrq_bt:~5,2% :: Get original date FOR /F %%I IN (YRQ.TXT) DO SET yrq=%%I set _yrq_at=%yrq% set /a yrq_at=%_yrq_at:~8,2% :: Get original month set /a yyf_at=%_yrq_at:~5,2% :: Calculate interval days: current-original if %xrq_bt% lss %yrq_at% ( set /a xrq_bt=%xrq_bt% ) set /a rq=%xrq_bt%-%yrq_at% :: Calculate interval months: current-original if %xyq_bt% lss %yyf_at% ( set /a xyq_bt=%xyq_bt%+12 ) set /a ys=%xyq_bt%-%yyf_at% :: Remaining days set /a srq=30-%rq% :: Remaining days (when a negative number appears) set /a hrq=-%rq% :: When interval months equal or are greater than 1 IF "%ys%"=="1" goto B IF "%ys%"=="2" goto C IF "%ys%"=="3" goto C IF "%ys%"=="4" goto C IF "%ys%"=="5" goto C IF "%ys%"=="6" goto C IF "%ys%"=="7" goto C IF "%ys%"=="8" goto C IF "%ys%"=="9" goto C IF "%ys%"=="10" goto C IF "%ys%"=="11" goto C IF "%ys%"=="12" goto C @echo. @echo Trial period has %srq% days remaining @echo. pause goto k :B :: When interval days are greater than 1 (when interval months equal 1) IF "%rq%"=="1" goto C IF "%rq%"=="2" goto C IF "%rq%"=="3" goto C IF "%rq%"=="4" goto C IF "%rq%"=="5" goto C IF "%rq%"=="6" goto C IF "%rq%"=="7" goto C IF "%rq%"=="8" goto C IF "%rq%"=="9" goto C IF "%rq%"=="10" goto C IF "%rq%"=="11" goto C IF "%rq%"=="12" goto C IF "%rq%"=="13" goto C IF "%rq%"=="14" goto C IF "%rq%"=="15" goto C IF "%rq%"=="16" goto C IF "%rq%"=="17" goto C IF "%rq%"=="18" goto C IF "%rq%"=="19" goto C IF "%rq%"=="20" goto C IF "%rq%"=="21" goto C IF "%rq%"=="22" goto C IF "%rq%"=="23" goto C IF "%rq%"=="24" goto C IF "%rq%"=="25" goto C IF "%rq%"=="26" goto C IF "%rq%"=="27" goto C IF "%rq%"=="28" goto C IF "%rq%"=="29" goto C IF "%rq%"=="30" goto C @echo. @echo Trial period has %hrq% days remaining @echo. pause goto k :C @echo. @echo. @echo The 30-day trial period has expired, program terminated. ping/n 10 127.1>nul :: Why does it close the bat window when run in August, September, or on the 8th or 9th of any month? goto eof :k :: Execute program ........ ........ [ Last edited by ZJHJ on 2007-3-4 at 04:31 AM ] |
|
| Floor173 icydawn | Posted 2007-03-04 05:03 |
| 初级用户 Posts 22 Credits 54 | |
|
I added a scheduled shutdown batch file to my computer's startup programs.
As follows: at 23:25 shutdown -s -f -t 10 When the computer shuts down, sometimes it shuts down normally, but sometimes it still shows the mouse pointer and the Kaspersky icon on the screen, and the computer's indicator light is still on. (Especially when other programs are running, it is basically 100% unable to shut down.) What's going on? Please help diagnose it, OP.. Many thanks!! |
|
| Prev 1 … 9 10 11 12 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |