![]() |
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-02 03:36 |
48,037 topics / 350,122 posts / today 2 new / 48,250 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] Problem of restoring the correct date after modifying the system date |
| Printable Version 1,539 / 2 |
| Floor1 87128 | Posted 2006-09-21 06:31 |
| 新手上路 Posts 5 Credits 16 | |
|
Hello everyone! Please help take a look, thank you!
date 2000-01-01 Date adjustment ........ date Current date Restore the current date when the script is executed Because the current date changes, so I want to have such a batch script to automatically restore the current date when the script is executed. |
|
| Floor2 electronixtar | Posted 2006-09-21 08:07 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
set dt=%date%
...do something date %dt% |
|
| Floor3 87128 | Posted 2006-09-21 08:59 |
| 新手上路 Posts 5 Credits 16 | |
Originally posted by electronixtar at 2006-9-21 08:07: Thanks! |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |