工作中需要每次启动机器后运行U盘中的多个程序,于是想写一个批处理文件,如下:
Call@echo off echo You are about to run startup programs! pause ::load outlook cmd /k "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /recycle ::load Visual Studio 2008 call "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" 这些命令都将启动的第一个程序,并等待,直到我关闭它,才运行第二。我想要同时运行多个程序。 如何实现?
Call@echo off echo You are about to run startup programs! pause ::load outlook cmd /k "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /recycle ::load Visual Studio 2008 call "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
@echo off echo You are about to run startup programs! pause ::load outlook cmd /k "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /recycle ::load Visual Studio 2008 call "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
把call改成start
startstart "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" ::load Visual Studio 2008 start "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
start "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" ::load Visual Studio 2008 start "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
Powered by: 博客园 Copyright © 2024 开始测试 Powered by .NET 9.0 on Kubernetes