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-07-08 01:10
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Please provide the complete original Chinese content including the specific requirements for the batch processing so that I can accurately translate it. The current content "求个批处理,要求先检查系统时间(已解决)" is too brief. For example, what specific checks on the system time are needed? Is it to check if it's within a certain time range, or something else? Please provide the full relevant content. View 2,697 Replies 19
Floor 16 Posted 2007-09-15 20:10 ·  中国 北京 中国科学院研究生院玉泉四公寓
银牌会员
★★★
Credits 1,187
Posts 555
Joined 2006-12-21 07:35
19-year member
UID 74129
Gender Male
Status Offline
Originally posted by zh159 at 2007-2-13 14:26:

Revise:
set /a a=%time:~0,2%%time:~3,2%
if %a% geq 800 if %a% leq 1800 (goto 下一步)
goto :eof
:下一步
..........

This can set the time range very intuitively



Hmm, this is really good
I have been using this format for time calculations
Floor 17 Posted 2007-09-22 11:10 ·  中国 上海 静安区 电信
初级用户
Credits 46
Posts 20
Joined 2007-06-15 14:57
19-year member
UID 91420
Gender Male
Status Offline
Thanks to the comrade in building 6 for letting me know about %path%~10,5% and the following...
Floor 18 Posted 2007-09-22 11:31 ·  中国 上海 静安区 电信
初级用户
Credits 46
Posts 20
Joined 2007-06-15 14:57
19-year member
UID 91420
Gender Male
Status Offline
What does this mean?

The original text "这个是什么意思啊?" is translated as "What does this mean?" and the line "set /a a=%time:~0,2%%time:~3,2%" remains as is since it's code. So the combined translated content is:

set /a a=%time:~0,2%%time:~3,2%

What does this mean?
Floor 19 Posted 2007-09-27 01:02 ·  中国 江苏 苏州 联通
新手上路
Credits 13
Posts 7
Joined 2007-09-26 22:45
18-year member
UID 98359
Gender Male
Status Offline
NB

Good, worthy of learning!
Floor 20 Posted 2007-09-30 10:32 ·  中国 北京 北京森华易腾通信技术有限公司BGP节点(北京电信+北京联通)
新手上路
Credits 2
Posts 1
Joined 2007-09-30 09:48
18-year member
UID 98616
Gender Male
Status Offline
Forum Jump: