windows的bat命令exist求解
biq园 2016-04-27 12:40:29
set a=F:\技术\vbs\
set b=20140427
set c=d.e.s%b%.123123.txt
set d=%a%%b%\%c%
echo ====%d%
if exist "%d%" echo aaaaa
if exist "F:\技术\vbs\20160427\d.e.s160427.123123.txt" echo bbbb
求为什么可以输出子bbbb,而不能输出aaaaa
目前知道在%a%%b%
if exist %a%%b%就已经识别不了。
if exist %a%可以识别,求大神指点。