windows中通过bat批处理打开exe文件

时间:2015-03-12 22:04:08   收藏:0   阅读:547

1、想要运行的程序:

C:\Program Files\Windows Media Player\wmplayer.exe

C:\Program Files\Haihaisoft Universal Player\hmplayer.exe

2、在桌面上,“新建 文本文档.txt”,方法是:在桌面上右键,新建-文本文档,复制下面内容并保存:

 

start C:\Progra~1\Window~1\wmplayer.exe

start C:\Progra~1\Haihai~1\hmplayer.exe

 (批处理中,除了用start命令外,还要注意C:\Progra~1\Window~1和C:\Progra~1\Haihai~1的变化)

 

3、改“新建 文本文档.txt”为“自动执行.bat”,保存在除桌面和C盘外的其他分区上。

4、运行“自动执行.bat”,就能运行wmplayer.exe和hmplayer.exe。

原文:http://www.cnblogs.com/LCCRNblog/p/4333411.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!