![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-15 12:23 |
47,812 topics / 349,917 posts / today 0 new / 48,268 members |
| DOS批处理 & 脚本技术(批处理室) » [Closed] How to use batch processing to delete startup items |
| Printable Version 7,558 / 16 |
| Floor1 chineselgs | Posted 2006-06-09 19:43 |
| 高级用户 Posts 266 Credits 613 From 河南省 | |
|
Please provide the batch code to delete the startup item in the specified path. Here is a possible batch code:
```batch @echo off reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "auto" /f ``` Please note that modifying system registry items requires appropriate permissions. Make sure you run this batch file with administrative privileges. |
|
| Floor2 namejm | Posted 2006-06-09 19:58 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
In the CMD window, you can enter reg /? or reg delete /? to view the help instructions to know what to do.
In your this problem, the following code can solve it: |
|
| Floor3 chineselgs | Posted 2006-06-10 12:41 |
| 高级用户 Posts 266 Credits 613 From 河南省 | |
|
Thank you very much to the person above
|
|
| Floor4 chineselgs | Posted 2006-06-12 18:34 |
| 高级用户 Posts 266 Credits 613 From 河南省 | |
|
Hehe, ask another small question.
I use batch to delete several registry values. But when running, it always asks if you want to delete, and you have to manually enter Y to do it. I don't want to be so troublesome, how to skip this Y. he, waiting for the answer online [ Last edited by willsort on 2006-6-14 at 16:55 ] |
|
| Floor5 namejm | Posted 2006-06-12 18:54 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
Hehe, you didn't use the reg /? command to view the help, right? The answer you need is in there. Just add a parameter /f.
|
|
| Floor6 不得不爱 | Posted 2006-06-13 08:47 |
| 超级版主 Posts 2,044 Credits 5,310 From 四川南充 | |
|
chineselgs:
You've been a veteran of the forum for a long time, why did you write such a poor title? Please revise the title, for example: How to delete registry values with batch processing without entering Y? |
|
| Floor7 chineselgs | Posted 2006-06-14 11:55 |
| 高级用户 Posts 266 Credits 613 From 河南省 | |
|
Hehe, in a moment of urgency, please don't take offense. Just remember it next time!!
|
|
| Floor8 fastslz | Posted 2006-06-14 12:05 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
Hehe, sometimes it is necessary to make good use of /?, especially since the cmd instructions are all in Chinese
|
|
| Floor9 chineselgs | Posted 2006-06-14 16:52 |
| 高级用户 Posts 266 Credits 613 From 河南省 | |
|
5555555555555555
Just writing a random title? Do you need two big moderators to bully me???? I want to file a complaint Where is the webmaster, if you don't come out, I'll go to your house to steal eggs!!!!!!! |
|
| Floor10 willsort | Posted 2006-06-14 17:07 |
| 元老会员 Posts 1,512 Credits 4,432 | |
|
Re chineselgs:
The original modification title prompt has been deleted after you modified the topic title, and the [Closed] tag has been added to the title. Remind this brother that the China DOS Union forum is a technical exchange forum. Everyone comes here mostly to learn knowledge and exchange experiences. Most people including the moderators hope that it can maintain the purity of technology. A small number of water posts can liven up the atmosphere and relax the mood, but too many water posts will affect everyone's speed and quality of obtaining experiences. And your topic with a vague title and a large number of non-technical replies obviously will bring certain obstacles to everyone's acquisition of knowledge and experiences. So here is a serious reminder that this forum has an independent "Picture and Water, Literature and Entertainment Section", where you can freely post various water posts without anyone deliberately stopping you. |
|
| Floor11 willsort | Posted 2006-06-14 17:21 |
| 元老会员 Posts 1,512 Credits 4,432 | |
|
───────────────── Moderation Record ───────────────── Performed by: Will Sort Operation: Merge topics {21199} How to use batch processing to delete registry values without entering Y? -> Posts 4-10 Explanation: The operated topic has direct contextual connection with this topic Punishment: Deduct 8 points, including 6 points rewarded for posting the topic and 2 points deducted for topic duplication penalty ───────────────── Moderation Record ───────────────── |
|
| Floor12 chineselgs | Posted 2006-06-16 17:29 |
| 高级用户 Posts 266 Credits 613 From 河南省 | |
|
Speechless...
|
|
| Floor13 xiongwei2624 | Posted 2006-06-30 14:25 |
| 初级用户 Posts 44 Credits 96 From 深圳 | |
|
cmd can't see reg /?
Depressed ing!! |
|
| Floor14 namejm | Posted 2006-06-30 15:29 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
In the CMD window, entering reg /? doesn't show the help content? What operating system are you using?
|
|
| Floor15 ghost2008 | Posted 2007-09-10 12:23 |
| 新手上路 Posts 6 Credits 12 | |
|
reg is not a command on the system
|
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |