![]() |
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-04 03:23 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » 请问如何取下个日期时间 How to get the next date and time |
| Printable Version 2,175 / 20 |
| Floor16 lililulula | Posted 2007-04-10 05:15 |
| 中级用户 Posts 138 Credits 302 | |
|
Bump myself up a bit, urgently need to solve~~~
|
|
| Floor17 flyinspace | Posted 2007-04-10 09:03 |
| 银牌会员 Posts 517 Credits 1,206 | |
|
Hehe, sorry. The code you need is relatively long. I don't have so much time to debug it out.
Do the minimum required. Know how many days are in each month. (Can be defined) For February, then judge whether the current year is a leap year ( Then take the current date and then decide whether to add or subtract one day. Whether the month should be incremented, whether the year should be incremented. All are within the scope of consideration. |
|
| Floor18 zh159 | Posted 2007-04-10 09:44 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
Originally posted by lililulula at 2007-4-9 14:59: Next Working Day.vbs bat |
|
| Floor19 lililulula | Posted 2007-04-10 23:37 |
| 中级用户 Posts 138 Credits 302 | |
|
Thanks to zh159 for providing the method of getting VBS script variables~~ Thanks a lot, I'll think about implementing it with batch scripts slowly. It seems quite difficult. If any expert knows, please do give advice~~~~~~
[ Last edited by lililulula on 2007-4-10 at 11:09 AM ] |
|
| Floor20 lililulula | Posted 2007-04-11 00:34 |
| 中级用户 Posts 138 Credits 302 | |
|
But there is another problem, can I remove the horizontal line in 2007-04-10 from the retrieved variable? I tried to retrieve it and then use the date variable to remove the horizontal line, but the time returned to the system time. As soon as I use the date function, I don't know how to remove the horizontal line in the VBS script. I hope friends who know can help.
|
|
| Floor21 lililulula | Posted 2007-04-11 03:00 |
| 中级用户 Posts 138 Credits 302 | |
|
The problem of the horizontal line has been solved. I didn't think much about it before, but now I've figured it out. Thanks everyone for your help.
|
|
| Prev 1 2 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |