Board logo

标题: 哪位老师能给出datex命令的用法说明。谢谢! [打印本页]

作者: 9106     时间: 2007-3-25 02:23    标题: 哪位老师能给出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.

作者: lxmxn     时间: 2007-3-25 06:01

如果你搜索了论坛,就可以找到我以前写的帮助了
http://www.cn-dos.net/forum/viewthread.php?tid=24175&fpage=1&highlight=DateX

作者: 9106     时间: 2007-3-25 06:39    标题: 问题是这样的:
已知有个网站定时发布一个数据包,文件名是以前一天的日期名称命名,如2007年3月24日可以下载的数据包的名称是:2007-03-23.zip。如此如何利用datex对该文件名赋值为啊?如set zipname=%date:~0,10%结果是:2007-03-24,如何试结果返回:2007-03-23,还望老师多说些,谢谢了!之前的参数解释,已用翻译软件查阅,基本了解。惭愧......