不知道有没有可能
但是我可以暂停一个 exe 并等待批处理文件完成,然后再次使用 exe 恢复吗?
最佳答案
我会查看 SysInternals 工具“pssuspend”。您可以只给它一个进程 ID:
PsSuspend suspends or resumes processes on a local or remote NT system.
Usage: pssuspend [-r] [\\RemoteComputer [-u Username [-p Password]]] <process Id or name>
-r Resume.
-u Specifies optional user name for login to
remote computer.
-p Specifies optional password for user name. If you omit this
you will be prompted to enter a hidden password.
转到 http://www.sysinternals.com ,查找“进程实用程序”,然后查找“pssuspend”。
一般来说,我建议您熟悉 sysinternals 工具;它们非常有用。
关于batch-file - 使用批处理文件暂停 exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16337181/