中国DOS联盟论坛

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-15 12:51
47,813 topics / 349,903 posts / today 1 new / 48,257 members
DOS疑难解答 & 问题讨论 (解答室) » Question about the DOS DATE command
Printable Version  3,044 / 4
Floor1 笨鸟乱飞 Posted 2002-12-20 00:00
初级用户 Posts 2 Credits 108
I want to write a batch file to do the following:
When the date equals a specific date, copy a certain file into a specific directory.
Can this be done?
Thanks!
Floor2 MYS Posted 2002-12-20 00:00
元老会员 Posts 1,637 Credits 5,170 From 广东佛山
The DATE command can only check the date and change the date; it cannot assign the result to a DOS environment variable.
If there is no other software, I guess you'll need to use QB or TC or the like to write a simple program.
Floor3 Wengier Posted 2002-12-20 00:00
系统支持 Posts 10,521 Credits 27,736
Using commands like STRING and ASET, it's easy to assign the date and time. There is so much software under DOS; having no other software is impossible.
Floor4 Roy Posted 2002-12-20 00:00
管理员 Posts 1,633 Credits 4,869
Floor5 笨鸟乱飞 Posted 2002-12-23 00:00
初级用户 Posts 2 Credits 108
Thanks
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023