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!
Credits 108 Posts 2 Joined 2002-12-20 00:00 23-year member UID 562 Gender Male
Status Offline
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!
Credits 5,170 Posts 1,637 Joined 2002-10-16 00:00 23-year member UID 8 Gender Male From 广东佛山
Status Offline
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.
Credits 27,736 Posts 10,521 Joined 2002-10-09 12:00 23-year member UID 9
Status Offline
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.