另,发现,command /c call nestvar>putfile.nst如果不用command /c 后面的重定向就不起作用了...
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
echo dir "%%dir%get%%%\%wbat%" /a>>nestvar.bat
command /c call nestvar>putfile.nst
可以改为:echo dir "%%dir%get%%%\%wbat%" /a %"%>%"%putfile.nst>>nestvar.bat
call nestvar.bat
echo @echo off>nestvar.bat
echo dir "%%dir%get%%%\%wbat%" /a>>nestvar.bat
command /c call nestvar>putfile.nst
echo dir "%%dir%get%%%\%wbat%" /a %%"%%>%%"%%putfile.nst>nestvar.bat
call nestvar.bat