windows - 如何理解批处理中的表达式 "%PATH:;= %"

标签 windows batch-file

当我读到How does "FOR" work in cmd batch file? ,有一个表达式“%PATH:;= %”,我不明白,for batch 如何设置每个路径。如何理解批处理中的表达式“%PATH:;= %”。这个表达式是Windows批处理中有什么样的功能。

非常感谢!

最佳答案

表达式 "%PATH:;= %"表示替换 ; 的所有实例在带空格的环境变量 %Path% 中

关于windows - 如何理解批处理中的表达式 "%PATH:;= %",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16301240/

相关文章:

java - 在第二个驱动器上安装 JDK

windows - 远程删除/禁用 Windows 计划任务

batch-file - 延迟扩展在延迟扩展内不起作用

windows - 在 Delphi 中为 Windows Mobile 编程

windows - 从文件中读取值并将其分配给批处理脚本中的变量

windows - Spark EC2 对 Windows 的支持

windows - Ubuntu wsl2 git 在大型 repos 上获取 "The remote end hung up unexpectedly"

windows - 如何从 Windows cmd "dir"中仅获取文件大小?

batch-file - 从批处理文件中获取命令行参数的短文件名

batch-file - 我可以在我的 xcopy 路径中引用变量吗?