代码拉取完成,页面将自动刷新
LabVIEW范例:如何让程序在系统启动时自启动
[!NOTE] Example 依赖 NEVSTOP-Programming-Palette.
Use Run or RunOnce registry keys to make a program run when a user logs on.
The Run key makes the program run every time the user logs on,
while the RunOnce key makes the program run one time, and then the key is deleted.
These keys can be set for the user or the machine.
The data value for a key is a command line no longer than 260 characters.
Register programs to run by adding entries of the form description-string=commandline.
You can write multiple entries under a key.
If more than one program is registered under any particular key,
the order in which those programs run is indeterminate.
The Windows registry includes the following four Run and RunOnce keys:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
[!TIP] 如果中文出现乱码如何处理:修改 reg文件的编码方式,设置为 ANSI 或 UTF-16 LE 编码。 reg文件导入注册表后出现中文乱码的解决方法
[!TIP] 此VI已包含在 NEVSTOP-Programming-Palette 4月Rleases 的 application Palette中,直接生成的reg 文件是 UTF-16 LE 编码.
按照 Pass Command Line Arguments to a LabVIEW Executable 配置编译 exe
运行 exe后, 双击 reg 文件, 将自启动信息导入注册表,重启系统后,程序会自启动, 可以在任务管理器中查看到启动项。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。