这是什么:/ =意味着%日期:/ =%? [英] What does :/= mean in %date:/=%?

查看:95
本文介绍了这是什么:/ =意味着%日期:/ =%?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在寻找一种方式来在Windows中创建日期命名的目录,我就翻过这个问题与<一个HREF =htt​​p://stackoverflow.com/a/5485929/520162>这的接受的答案。

While searching for a way to create a date-named directory in Windows, I came accross this question with that accepted answer.

有接受的答案评论如下:

There's a comment below the accepted answer:

为了使它更容易:的mkdir%日期:/ =%

因此​​,%DATE%显示当前的日期,但到底是什么:?/ =

So, %date% prints the current date, but what does :/= do?

推荐答案

这意味着之间的字符串替代品 和<大骨节病> = 与后弦的<大骨节病> = 和闭幕前<大骨节病>%

It means substitute for the string between the : and the = with the string after the = and before the closing %

因此​​,它剔除了任何<大骨节病> / 自变量%DATE%这是默认设置为当前日期。

So it strips out any / from the variable %date% which is set by default to the current date.

这篇关于这是什么:/ =意味着%日期:/ =%?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆