Dos设置目录,引号不起作用

时间:2011-08-11 00:26:53

标签: batch-file cmd

我正在努力实现这一目标:

set MINIFYEXE = "C:\Program Files (x86)\Microsoft\Microsoft Ajax Minifier\ajaxmin.exe"
echo %MINIFYEXE%

预期是:

"C:\Program Files (x86)\Microsoft\Microsoft Ajax Minifier\ajaxmin.exe"

输出是:

ECHO is off.

1 个答案:

答案 0 :(得分:4)

尝试删除SET语句中等号前后的空格:

set MINIFYEXE="C:\Program Files (x86)\Microsoft\Microsoft Ajax Minifier\ajaxmin.exe"