Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能的重复: Bash 反引号的批处理等效项
在 unix 中,我们使用 `` 进行命令输出替换。
例如
export a=`pwd`
在 DOS 命令提示符下,这个 (``) 是否有任何等价物?
Unix:
export var1=`pwd`
操作系统:
FOR /F %a IN ('pwd') DO SET var1=%a