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-03 16:16
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Attention] Batch Processing Diagnosis Special Room View 17,393 Replies 172
Floor 166 Posted 2005-04-23 00:00 ·  中国 山东 济宁 电信
中级用户
★★★
痴迷DOS者
Credits 456
Posts 570
Joined 2004-10-09 00:00
21-year member
UID 32281
Gender Male
Status Offline
Please write an interface like this:
|----------------------------------------------|
| -- | Windows3.x | V |
|----------------------------------------------|
| |
| |
| |
| |
|==============================================|
| || || || || || |
|==============================================|
DOS不是万能的,没有DOS是万万不能的
自古系统谁无死?留取胆清照汗青!uploadImages/20035317345478982.png
Floor 167 Posted 2005-04-25 00:00 ·  中国 湖北 武汉 电信
初级用户
Credits 129
Posts 4
Joined 2005-03-03 00:00
21-year member
UID 36701
Gender Male
Status Offline
It's very hard to find study materials for BAT, they're all scattered bits and pieces
Floor 168 Posted 2005-04-28 00:00 ·  中国 北京 朝阳区 联通
初级用户
Credits 102
Posts 1
Joined 2005-04-28 00:00
21-year member
UID 38643
Gender Male
Status Offline
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
Floor 169 Posted 2005-05-21 00:00 ·  中国 山东 济宁 电信
中级用户
★★★
痴迷DOS者
Credits 456
Posts 570
Joined 2004-10-09 00:00
21-year member
UID 32281
Gender Male
Status Offline
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
DOS不是万能的,没有DOS是万万不能的
自古系统谁无死?留取胆清照汗青!uploadImages/20035317345478982.png
Floor 170 Posted 2007-03-03 11:44 ·  中国 湖北 潜江 电信
高级用户
★★★
Credits 894
Posts 411
Joined 2007-02-17 12:15
19-year member
UID 79697
Gender Male
Status Offline
Ru Shi Master's poem, was it written by yourself? The artistic conception is very high, and the wording is very interesting too.
Floor 171 Posted 2007-03-03 11:54 ·  中国 湖北 潜江 电信
高级用户
★★★
Credits 894
Posts 411
Joined 2007-02-17 12:15
19-year member
UID 79697
Gender Male
Status Offline
I think once you understand the commands if, for, and set, that's about enough. Unfortunately I just can't completely understand them. Depressing!
Floor 172 Posted 2007-03-04 04:18 ·  中国 四川 泸州 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
20-year member
UID 59720
Status Offline
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 ]
Floor 173 Posted 2007-03-04 05:03 ·  中国 江苏 南京 栖霞区 电信
初级用户
Credits 54
Posts 22
Joined 2007-02-10 02:42
19-year member
UID 79107
Gender Male
Status Offline
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 10 11 12
Forum Jump: