如果是可执行的程序,比如 .exe .bat .cmd .pif 等,甚至 .vbs .js .vbe 都可以直接输入它们的全文件名(有空格需要用引号括起来)即可运行,可以不加后缀,但优先级是 .com 的最高,然后才是 .exe 和其他;
比如
"C:\Program Files\Windows Media Player\wmplayer.exe"
或者
"C:\Program Files\Windows Media Player\wmplayer"
可以运行Windows Media Player;
如果是系统路径中的程序,可以不要他们的路径。
比如
sndrec32
即可运行录音机小程序。
也可以用 start 命令启动一个程序,可以初始化他们启动时的状态
比如
start /min "" wmplayer
可以最小化运行。
批处理不能隐藏运行一个程序,需要使用 vbscript 脚本。
If it is an executable program, such as .exe .bat .cmd .pif, etc., even .vbs .js .vbe can be run directly by entering their full file names (if there are spaces, enclose them in quotes), and the suffix can be omitted, but the priority is that .com is the highest, and then .exe and others;
For example
"C:\Program Files\Windows Media Player\wmplayer.exe"
or
"C:\Program Files\Windows Media Player\wmplayer"
can run Windows Media Player;
If it is a program in the system path, you can omit their path.
For example
sndrec32
can run the recorder applet.
You can also use the start command to start a program, which can initialize their startup status
For example
start /min "" wmplayer
can run in minimized mode.
Batch processing cannot hide the running of a program, and you need to use a vbscript script.