China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-31 21:21
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Closed] How to use batch processing to delete startup items View 7,210 Replies 16
Original Poster Posted 2006-06-09 19:43 ·  中国 福建 泉州 电信
高级用户
★★
论坛灌水专业户
Credits 613
Posts 266
Joined 2006-04-19 22:47
20-year member
UID 54113
From 河南省
Status Offline
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.
饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
Floor 2 Posted 2006-06-09 19:58 ·  中国 浙江 杭州 电信
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
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:

reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v auto
Floor 3 Posted 2006-06-10 12:41 ·  中国 福建 泉州 电信
高级用户
★★
论坛灌水专业户
Credits 613
Posts 266
Joined 2006-04-19 22:47
20-year member
UID 54113
From 河南省
Status Offline
Thank you very much to the person above
饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
Floor 4 Posted 2006-06-12 18:34 ·  中国 福建 泉州 电信
高级用户
★★
论坛灌水专业户
Credits 613
Posts 266
Joined 2006-04-19 22:47
20-year member
UID 54113
From 河南省
Status Offline
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 ]
饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
Floor 5 Posted 2006-06-12 18:54 ·  中国 浙江 杭州 电信
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
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.
Floor 6 Posted 2006-06-13 08:47 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
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?
Floor 7 Posted 2006-06-14 11:55 ·  中国 福建 泉州 电信
高级用户
★★
论坛灌水专业户
Credits 613
Posts 266
Joined 2006-04-19 22:47
20-year member
UID 54113
From 河南省
Status Offline
Hehe, in a moment of urgency, please don't take offense. Just remember it next time!!
饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
Floor 8 Posted 2006-06-14 12:05 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Hehe, sometimes it is necessary to make good use of /?, especially since the cmd instructions are all in Chinese
Floor 9 Posted 2006-06-14 16:52 ·  中国 福建 泉州 电信
高级用户
★★
论坛灌水专业户
Credits 613
Posts 266
Joined 2006-04-19 22:47
20-year member
UID 54113
From 河南省
Status Offline
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!!!!!!!
饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
Floor 10 Posted 2006-06-14 17:07 ·  中国 山西 太原 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
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.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 11 Posted 2006-06-14 17:21 ·  中国 山西 太原 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline

───────────────── 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 ─────────────────
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 12 Posted 2006-06-16 17:29 ·  中国 福建 泉州 电信
高级用户
★★
论坛灌水专业户
Credits 613
Posts 266
Joined 2006-04-19 22:47
20-year member
UID 54113
From 河南省
Status Offline
Speechless...
饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
Floor 13 Posted 2006-06-30 14:25 ·  中国 广东 深圳 天威有线宽带(关内)
初级用户
Credits 96
Posts 44
Joined 2006-06-26 17:52
20-year member
UID 57603
Gender Male
From 深圳
Status Offline
cmd can't see reg /?
Depressed ing!!
Floor 14 Posted 2006-06-30 15:29 ·  中国 四川 成都 鹏博士宽带
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
In the CMD window, entering reg /? doesn't show the help content? What operating system are you using?
Floor 15 Posted 2007-09-10 12:23 ·  中国 广东 深圳 福田区 电信
新手上路
Credits 12
Posts 6
Joined 2006-07-13 16:23
20-year member
UID 58516
Status Offline
reg is not a command on the system
Forum Jump: