禁用环境变量 [英] Disabling Environmental Variables
本文介绍了禁用环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何可以禁用一个环境变量,即。 %的进行输出,当复制到一个文本文件会留为%TIME%TIME%? 回声%TIME%> example.txt文件
How could I disable an environmental variable ie. %TIME% from giving an output and would stay as %TIME% when copied into a text file? echo %TIME% > Example.txt
推荐答案
我明白的问题要打印只需%TIME%
as I understand the question you want to print simply %time%
从批处理文件:
echo %%time%%
从命令提示符:
echo %^time%
这篇关于禁用环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文