在启动时运行批处理文件 [英] Run Batch File On Start-up
问题描述
有没有办法在系统启动时在一个批处理文件中启动多个程序?除此之外,在那个批处理文件中,我想说:一旦我执行了一个程序,等到该程序完全加载,然后执行下一个列出的程序.
Is there a way to start multiple programs in a batch file on system start-up? In addition to that, in that batch file, I would like to be able to say: Once I execute a program, wait until that program completely loads, and execute the next listed program.
任何帮助将不胜感激.
推荐答案
我在 Win7 中遇到了同样的问题,即在启动时(当计算机启动时与有人登录时)运行脚本(.bat)会修改网络使用 netsh 的参数.最终为我工作的是以下内容:
I had the same issue in Win7 regarding running a script (.bat) at startup (When the computer boots vs when someone logs in) that would modify the network parameters using netsh. What ended up working for me was the following:
- 使用管理员帐户登录
- 点击开始并输入任务计划程序"并回车
- 点击任务计划程序库"
点击屏幕右侧的新建任务",设置参数如下:
- Log in with an Administrator account
- Click on start and type "Task Scheduler" and hit return
- Click on "Task Scheduler Library"
Click on "Create New Task" on the right hand side of the screen and set the parameters as follows:
一个.将用户帐户设置为 SYSTEM
a. Set the user account to SYSTEM
b.选择以最高权限运行"
b. Choose "Run with highest privileges"
c.选择适用于 Windows7 的操作系统
c. Choose the OS for Windows7
这篇关于在启动时运行批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!