简体   繁体   English

由bat文件制成的自动启动exe应用程序,可在计算机启动时开始运行

[英]Auto start exe application made from a bat file to start running when computer boots

I have a batch file which is converted to a exe application I'm struggling to insert a batch code in the file so my application auto starts when windows 7 boots. 我有一个转换为exe应用程序的批处理文件,我正在努力在文件中插入一个批处理代码,因此Windows 7启动时我的应用程序会自动启动。 In my batch file I tried adding REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\\Scripts\\Startup /v winboot /t REG_SZ /d C: Path to my application, this value is successfully added but my application does not start every time the computer boots. 在我的批处理文件中,我尝试添加REG ADD HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Policies \\ Microsoft \\ Windows \\ System \\ Scripts \\ Startup / v winboot / t REG_SZ / d C:应用程序的路径,此值已成功添加,但我的应用程序未启动每次启动计算机时。 I have also tried various methods but no luck 我也尝试过各种方法但没有运气

Can anyone help I need a batch command to insert into my file so it starts when the operating system starts from reboot and it should be retained following conversion to the exe application? 谁能帮我需要一个批处理命令插入我的文件,以便它在操作系统从重新启动启动时启动,并且在转换为exe应用程序后应保留该命令?

I have tried using this also at the start of my bat script REG ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /reg.bat /t REG_SZ /F /DC:\\Desktop\\reg.bat Then my script below... It's still not loading at start up using windows 7 我也在bat脚本的开头尝试过使用此命令。REG ADD HKLM \\ SOFTWARE \\ Microsoft \\ Windows \\ CurrentVersion \\ Run /reg.bat / t REG_SZ / F /DC:\\Desktop\\reg.bat然后是下面的脚本。 。在使用Windows 7启动时仍然无法加载

That's for group policy logon/off scripts. 这是用于组策略登录/关闭脚本的。

Try HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run (need to be admin to write here). 尝试使用HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run (需要管理员才能在此处编写)。

Run

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ 

Description 描述

The Run subkey of HKEY_LOCAL_MACHINE\\Software stores the names of programs that Windows 2000 runs at startup, for all users of the computer, each time the system starts. HKEY_LOCAL_MACHINE \\ Software的“运行”子项存储Windows 2000在启动时为计算机的所有用户在系统每次启动时运行的程序的名称。

Each entry in the subkey represents a program. 子项中的每个条目代表一个程序。 The value of the entry is the name of the executable file for the program. 该条目的值是该程序的可执行文件的名称。 These entries have the following format: 这些条目具有以下格式:

Program Name  REG_SZ  File name 

From Windows 2000 Resource Kit Reference, Technical Reference to the Windows 2000 Registry in the Windows 2000 Resource Kit. Windows 2000 Resource Kit参考,技术参考到Windows 2000 Resource Kit中的Windows 2000注册表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM