Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有2个exe文件。文件 1.exe和文件 2.exe。我需要一个包含前两个文件的file3.exe 。当file3运行时,file1将运行,如果file1返回 true,则file2将运行。我怎样才能做到这一点?
如果是.bat文件
.bat
file1.exe IF NOT ERRORLEVEL 0 GOTO error1 file2.exe :error1