这是我四年前为做一个系统测试了这条语句。挺实用的!
tasklist |find “cmd.exe” &&if errorlevel 1 (goto 1) else goto 2 :1 c: cd \ md vi1
:2 c: cd \ md vi
pause