根据当前date创buildWindows 2003快捷方式或MKLINK?

我需要在将生成别名的prod服务器上创build一个符号链接/快捷方式

agent_ivr_general_info.CURRENT 

 agent_ivr_general_info.[todays date].log 

因为我每天都有日志滚动日志:

 agent_ivr_general_info.2011-04-28.log 

我想打开1 LINK到CURRENT。

嗯…我想一种技术将是使用Sysinternals的JUNCTION.EXE与计划任务每​​天午夜后运行,并使用类似以下内容来更改链接:

 cd TARGET_DIRECTORY :: get date -- this only works for default US date, YMMV set day=%DATE:~7,2% set month=%DATE:~4,2% set year=%DATE:~-4% :: set %today% formatted as YYYY-MM-DD set today=%year%-%month%-%day% :: delete old link junction -d CURRENT :: create new one junction -c CURRENT .\%today%