批处理/ CMD:将文件添加到启动列表 [英] Batch/CMD: Adding files to Startup list

查看:167
本文介绍了批处理/ CMD:将文件添加到启动列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪有一个批处理文件列出本身在Windows的启动列表???

How can a batch file lists itself in the startup list of Windows???

如果它从注册表进入与否并不重要。

It doesn't matter if it goes from the registry or not.

如果使用注册表,还请给命令来删除注册表项。

IF with the registry, please give also the command to DELETE the registry entry.

这应该所有版本下工作,从我这里7请。

This should work under all versions from ME to 7 please.

否则的话只有XP / Vista / 7的。

Otherwise just XP/Vista/7.

感谢。

推荐答案

不知道我理解你,但如果你想要的是一个简单的方法来执行在启动的命令/批,为什么不把它放在所有用户\\启动文件夹?

要做到这一点编程就仅仅意味着将文件复制到该目录中。

例如,在Windows Vista中,该目录的完整路径是:

Not sure i understand you, but if what you want is an easy way to execute a command/batch on startup, why not just put it in the All Users\Startup folder?
To do so programatically would just mean copying a file to that directory.
For example, in Windows Vista, the full path of that directory is:

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

(可以使用与更换行的开头%ProgramData%%AllUsers的%\\ ProgramData 来使其更具全球性的 - 当安装在d个窗口,如:。)

(you can use replace the beginning of the line with %ProgramData% or %AllUsers%\ProgramData to make it more global - such as when Windows is installed on D:).

这篇关于批处理/ CMD:将文件添加到启动列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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