批处理/vbscript 启动/关闭 exe
来源:互联网 发布:薛之谦回应风波 知乎 编辑:程序博客网 时间:2024/06/10 21:16
启动:
1、批处理 start *.exe
2、VBS
im program program="*.exe" '你的exe路径set Wshell=CreateObject("Wscript.Shell") set oexec=Wshell.Exec(program)
若想启动某exe后再点击其中的某个按钮:则若此按钮是焦点按钮,则回车键后此exe将运行起来
VBS如下:
im program program="*.exe" '你的exe路径set Wshell=CreateObject("Wscript.Shell") set oexec=Wshell.Exec(program)
wscript.Sleep 1000 Wshell.AppActivate "*.exe"
wscript.Sleep 200 Wshell.SendKeys "{ENTER}"
这样就可以了!!
关闭:
方法一:taskkill /f /t /im 10101103_JKDDZ/JKDDZ_AI.exe 方法二:wmic process where "name='*.exe'" call terminate
有时,exe采用方法一关不掉,可以采用方法二关闭它
0 0
- 批处理/vbscript 启动/关闭 exe
- ArcIMS启动与关闭批处理
- Oracle 批处理启动关闭服务
- oracle启动关闭批处理方法
- oracle 启动 关闭 服务批处理
- 批处理启动和关闭VMware
- 批处理 自动关闭、启动进程
- windows批处理 打开exe后关闭cmd
- 使用批处理启动及关闭SAP MMC
- Oracle 启动服务|关闭服务 批处理
- GlassFish服务器批处理代码启动和关闭
- 批处理启动和关闭oracle服务
- 启动、关闭ORACLE服务的批处理命令
- 批处理命令来启动或关闭tomcat
- 数据库服务启动和关闭批处理命令
- 编写批处理脚本启动和关闭Oracle
- 批处理(bat文件)自动启动/关闭oracle服务
- 使用批处理启动及关闭SAP MMC for ECC6
- [初试]C学习笔记#001: 关于while循环的条件
- 更新GitHub上自己 Fork 的代码与原作者的项目进度一致
- greenplum集群的安装
- tomcat热部署
- c语言中float、double的区别和用string定义字符串反置
- 批处理/vbscript 启动/关闭 exe
- Storm UnresolvedAddressException异常
- Hibernate的关联映射学习2015-11-10
- 使用JSP页面生成PDF报表
- Java——输出年月日
- 动态星星评价条(支持半星操作)
- android editText 字符长度限制
- 不同Assembly中使用 BinaryFormatter 序列化的问题
- linux下用gdb调试python程序