batch-file - 使用批处理文件暂停 exe

标签 batch-file exe wait

不知道有没有可能

但是我可以暂停一个 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/

相关文章:

c - 不使用命令行窗口打开program.exe

c++ - 从 .exe 读取输入并写入 .exe 以读取国际象棋引擎命令

r - 如何使用R调用exe程序和输入参数?

html - 如何在css中添加元素之前等待一段时间? javascript?

javascript - 从循环中一次发送一个 AJAX 请求

windows - 使用批处理更改虚拟内存

windows - 无法以管理员权限运行批处理代码

java - 顺序等待语句

python - 在命令提示符下运行python的语法错误

batch-file - 如何根据图像/文件路径终止进程?