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-06-25 13:06
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Question about the DOS DATE command View 2,850 Replies 4
Original Poster Posted 2002-12-20 00:00 ·  中国 江西 抚州 移动
初级用户
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!
Floor 2 Posted 2002-12-20 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
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.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 3 Posted 2002-12-20 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
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.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 4 Posted 2002-12-20 00:00 ·  中国 香港 香港教育大学
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 5 Posted 2002-12-23 00:00 ·  中国 江西 抚州 移动
初级用户
Credits 108
Posts 2
Joined 2002-12-20 00:00
23-year member
UID 562
Gender Male
Status Offline
Thanks
Forum Jump: