加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Input date info into daily reports name via CMD

(2010-04-13 09:37:40)
标签:

杂谈

分类: 工作

While the tripwire setup, no one wants the daily change reports become to the flood. So I have to figure out a way to generate the reports and save them to the local drive. The Tripwire has a utility can do this but it only save to one file and it will always replace the old report with the new one. Thus, I need to put a time stamp on each reports and keep all of them in track. What I did is I used a strength as below to solve the issue.

 

echo “%date:~6,4%-%date:~3,2%-%date:~0,2%”

2010-04-13

 

And report come to this way: Report_2010-04-13.pdf

 

PS: && in the command line means break or change line.

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有