gpt4 book ai didi

variables - :/= mean in %date:/=%? 是什么意思

转载 作者:行者123 更新时间:2023-12-02 21:43:04 25 4
gpt4 key购买 nike

在寻找在 Windows 中创建以日期命名的目录的方法时,我遇到了 this questionthat接受的答案。

接受的答案下面有一条评论:

To make it more easy: mkdir %date:/=%

那么,%date% 会打印当前日期,但是 :/= 会做什么呢?

最佳答案

表示将:=之间的字符串替换为=之后、结束之前的字符串%

因此它会从默认设置为当前日期的变量 %date% 中删除任何 /

关于variables - :/= mean in %date:/=%? 是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21032288/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com