中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-27 00:36
47,812 主题排行 / 349,912 发帖 / 今日 2 篇 / 48,264 会员排行
其它操作系统综合讨论区 » 哪位老师能给出datex命令的用法说明。谢谢!
可打印版本  870 / 2
第1楼 9106 发表于 2007-03-25 02:23
新手上路 发帖 2 积分 6
哪位老师能给出datex命令的用法说明。谢谢!
因为e文太差的原因,对datex的命令参数解释不甚明了,还请高手明示。谢谢
Usage: datex [-d date] [-f format] [-i num] [-o offset] [-t]

-d Specifies a date.
-f Specifies the format for the date.
-i Output the date represented by the specified number (inverse of -t).
-o Specify a number-of-days difference.
-t Output the date as a number for comparison purposes.

Without arguments, DateX prints the current date and time.
第2楼 lxmxn 发表于 2007-03-25 06:01
版主 发帖 4,938 积分 11,386

如果你搜索了论坛,就可以找到我以前写的帮助了
http://www.cn-dos.net/forum/viewthread.php?tid=24175&fpage=1&highlight=DateX
第3楼 9106 发表于 2007-03-25 06:39
新手上路 发帖 2 积分 6
问题是这样的:
已知有个网站定时发布一个数据包,文件名是以前一天的日期名称命名,如2007年3月24日可以下载的数据包的名称是:2007-03-23.zip。如此如何利用datex对该文件名赋值为啊?如set zipname=%date:~0,10%结果是:2007-03-24,如何试结果返回:2007-03-23,还望老师多说些,谢谢了!之前的参数解释,已用翻译软件查阅,基本了解。惭愧......
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023