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

1、想要运行的程序:

C:Program FilesWindows Media Playerwmplayer.exe

C:Program FilesHaihaisoft Universal Playerhmplayer.exe

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

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

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

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

 

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

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

原文地址:https://www.cnblogs.com/LCCRNblog/p/4333411.html