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-22 05:41
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Original] Scheduled Task Mini Program [Update on 06.12] View 4,037 Replies 19
Floor 16 Posted 2006-06-09 21:13 ·  中国 江苏 镇江 联通
中级用户
★★
Credits 219
Posts 82
Joined 2005-10-29 10:56
20-year member
UID 44240
Status Offline
The moderator is really excellent, far beyond our comparison~~
I originally used to process the current time and the user input time by removing the 0, but the moderator's method is more ingenious, only processing the user input unilaterally, which is really admirable.

re: namejm
Regarding the input of tag symbols, I know that, but after I posted it, I didn't find that the code was tampered with by the web page.

I really hope you can give some good methods for detecting date and time formats. Thanks

[ Last edited by jastyg on 2006-6-9 at 21:35 ]
www.jastyg.com
www.efengchi.com
Floor 17 Posted 2006-06-10 19:09 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re jastyg:

Brother's comments in the program used an incorrect method, which hindered the normal execution of the batch processing. It is suggested that brother do a good job in testing before updating the code.

As brother namejm said, too many comments are not only useless but also harmful, and excellent writing style will make people understand the code more effectively than comments. My suggestion is to only comment on the modules starting with tags and more complex statements.

For the format detection method of date and time, please use if /? to check the comparison operators in it, I believe you will gain something.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 18 Posted 2006-06-12 14:43 ·  中国 江苏 镇江 电信
中级用户
★★
Credits 219
Posts 82
Joined 2005-10-29 10:56
20-year member
UID 44240
Status Offline
The date and time have been verified using the original method~~~
www.jastyg.com
www.efengchi.com
Floor 19 Posted 2006-06-12 19:40 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re jastyg:

It's a pity! It seems that you didn't take the suggestions from me and namejm. The redundant comments in the code are still there, the 08/09 judgment still uses the old algorithm, and the time detection still uses for. If you can improve these situations, I will give my own suggestions after making a more detailed test on the code.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 20 Posted 2007-03-14 08:40 ·  中国 内蒙古 兴安盟 乌兰浩特市 联通
新手上路
Credits 17
Posts 10
Joined 2007-03-12 06:42
19-year member
UID 81476
Gender Male
Status Offline
Forum Jump: