本文介绍了如何创建一个用户环境变量,每次调用时会调用*%日期%或%时间%?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用以下定义创建2个用户环境变量:

I'm trying to create 2 user environment variables with the following defintion:

 c $ c> / code>,所有百分比扩展完成后。 

It's works because, first the batch line parser expands %datel% to !date:~-4!!date:~3,2!!date:~0,2! and after all percent expansions are done.

然后转义字符被处理,然后作为最后一个阶段,解析器扩展感叹号将被扩展。

Then the escape characters are handled, and then as the last phase the parser expands the exclamations are expanded.

这篇关于如何创建一个用户环境变量,每次调用时会调用*%日期%或%时间%?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 13:05