2014-02-26 28 views

回答

1

&合併命令:

if exist c:\test.txt start c:\test.exe & del c:\test.txt 

,或者使用的括號:

if exist c:\test.txt (
    start c:\test.exe 
    del c:\test.txt 
) 
+0

''&&是條件算子。您可以將命令與一個'&' – foxidrive

+0

好點結合起來。我會解決答案。 –

相關問題