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

查看:41
本文介绍了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.

推荐答案

注册表中添加您的程序:

运行 - 这些是安装自动启动的程序最常见的启动位置.默认情况下,这些键不会在安全模式下执行.如果您在这些键的值前加上星号,* 将在安全模式下运行.注册表项:

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_MACHINESoftwareMicrosoftWindowsCurrentVersionRun registry key
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun registry key 

然后您可以在 隐形模式下启动您的批处理:

wscript.exe "C:yourpathinvis.vbs" "your_file.bat"

在 invis.vbs 中放入...

In invis.vbs put...

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

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

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