在后台运行批处理文件时,Windows启动 [英] Running Batch File in background when windows boots up

查看:180
本文介绍了在后台运行批处理文件时,Windows启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何运行一个批处理文件,每一次Windows启动还需要我在回地面运行它(没有这种命令窗口中显示得到)?我使用Windows XP中。
我的实际工作的要求是我想要使用命令行每当Windows启动命令,启动Tracd服务器。

How do I run a batch file each time windows boots up also I need to run it in the back ground(without that command window getting displayed)? I use Windows Xp. My actuall requirement is I want to start the Tracd server using the command line commands whenever Windows boots up.

推荐答案

注册表加入你的程序:

运行 - 这些都是从安装自动启动的程序中最常见的启动位置。默认情况下,这些按键都没有在安全模式下执行。如果preFIX这些键的有星号的价值,*,是将在安全模式下运行。
注册表项:

Run - These are the most common startup locations for programs to install auto start from. By default these keys are not executed in Safe mode. If you prefix the value of these keys with an asterisk, *, is will run in Safe Mode. Registry Keys:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run registry key
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run registry key 

然后你可以在隐形模式启动批处理:

wscript.exe "C:\yourpath\invis.vbs" "your_file.bat"

在invis.vbs放...

In invis.vbs put...

CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

这篇关于在后台运行批处理文件时,Windows启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆