在寻找在 Windows 中创建以日期命名的目录的方法时,我遇到了这个问题 https://stackoverflow.com/q/5485853/520162 with that https://stackoverflow.com/a/5485929/520162接受的答案。
在接受的答案下面有一条评论:
为了使它更容易:mkdir %date:/=%
So, %date%
打印当前日期,但什么是:/=
do?
It means substitute for the string between the : and the = with the string after the = and before the closing %
So it strips out any / from the variable %date%
which is set by default to the current date.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)