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.
如果这个问题很幼稚,我很抱歉。
是否可以在bash脚本中运行几行然后执行dos批处理文件和dos可执行文件,在完成批处理文件和可执行文件的执行后,继续执行bash脚本中的其余行?
我可以使用dosemu做到这一点吗?
bash 脚本将始终在完成任何调用的脚本或可执行文件后完成脚本。例子:
@echo off echo hello "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" echo hope you had fun browsing the web! pause
一旦 Firefox 关闭,这将始终回显最后一行代码。