如何在启动时为Win x64计算机运行批处理文件?

时间:2022-09-01 09:56:56

I know you can use autoexnt to run a batch file on startup for Windows XP, but that only seems to work for 32-bit machines. I'm running Windows XP x64 on a box, and I need to have a script run on startup (without anyone's logging in). Any ides?

我知道你可以使用autoexnt在Windows XP启动时运行批处理文件,但这似乎只适用于32位机器。我在一个盒子上运行Windows XP x64,我需要在启动时运行一个脚本(没有任何人登录)。任何想法?

Thanks for the help.

谢谢您的帮助。

3 个解决方案

#1


2  

Can also use local computer policy to configure startup and shutdown scripts.

也可以使用本地计算机策略配置启动和关闭脚本。

http://vlaurie.com/computers2/Articles/group_policy_editor.htm

Has a good walkthrough of how to do it.

有一个很好的演练如何做到这一点。

#2


1  

In your registry, accessible through "regedit" you can navigate to the following key:

在您的注册表中,可通过“regedit”访问,您可以导航到以下键:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Add a Reg_sz type entry, doesn't matter what the key name is really, but as the value give the fully qualified path name to your program or batch file.

添加Reg_sz类型条目,无论密钥名称是什么都无关紧要,但是该值为程序或批处理文件提供了完全限定的路径名​​。

#3


0  

On startup meaning Login, or on startup meaning (before anyone logs in)?

在启动时意味着登录,或启动意义(在任何人登录之前)?

On login, you could just put a BAT in your Startup folder.

登录时,您可以将BAT放入Startup文件夹中。

#1


2  

Can also use local computer policy to configure startup and shutdown scripts.

也可以使用本地计算机策略配置启动和关闭脚本。

http://vlaurie.com/computers2/Articles/group_policy_editor.htm

Has a good walkthrough of how to do it.

有一个很好的演练如何做到这一点。

#2


1  

In your registry, accessible through "regedit" you can navigate to the following key:

在您的注册表中,可通过“regedit”访问,您可以导航到以下键:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Add a Reg_sz type entry, doesn't matter what the key name is really, but as the value give the fully qualified path name to your program or batch file.

添加Reg_sz类型条目,无论密钥名称是什么都无关紧要,但是该值为程序或批处理文件提供了完全限定的路径名​​。

#3


0  

On startup meaning Login, or on startup meaning (before anyone logs in)?

在启动时意味着登录,或启动意义(在任何人登录之前)?

On login, you could just put a BAT in your Startup folder.

登录时,您可以将BAT放入Startup文件夹中。