中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-11 23:48
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 批处理删除开机启动项问题 查看 1,201 回复 4
楼 主 批处理删除开机启动项问题 发表于 2009-01-18 11:41 ·  中国 江苏 南通 移动
新手上路
积分 8
发帖 2
注册 2009-01-14 13:51
17年会员
UID 136653
性别 男
状态 离线

————————————————————————————————
转移自 DOS疑难解答 & 问题讨论 (解答室)
明显发错版块,因属论坛新手,故暂不予以处罚,望今后引起注意。
——管理员
————————————————————————————————




@echo off
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Ravtary
这是我自己编写的批处理 可是运行起来 要按Y 才能执行 我想让它自动运行,不需要按Y也能执行
请高手帮忙啊~~~~~~~~
2 发表于 2009-01-18 15:32 ·  中国 江苏 苏州 电信
初级用户
积分 20
发帖 13
注册 2009-01-05 14:58
17年会员
UID 135829
性别 男
状态 离线
/f
3 发表于 2009-01-18 15:36 ·  中国 重庆 电信
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
19年会员
UID 89899
性别 男
状态 离线
多看帮助
C:\Test>reg delete /?

Console Registry Tool for Windows - version 3.0
Copyright (C) Microsoft Corp. 1981-2001. All rights reserved


REG DELETE KeyName

KeyName FullKey
Machine Name of remote machine - omitting defaults to the current machine
Only HKLM and HKU are available on remote machines
FullKey ROOTKEY\SubKey
ROOTKEY
SubKey The full name of a registry key under the selected ROOTKEY
ValueName The value name, under the selected Key, to delete
When omitted, all subkeys and values under the Key are deleted
/ve delete the value of empty value name <no name>
/va delete all values under this key
/f Forces the deletion without propmt

Examples:

REG DELETE HKLM\Software\MyCo\MyApp\Timeout
Deletes the registry key Timeout and its all subkeys and values

REG DELETE \\ZODIAC\HKLM\Software\MyCo /v MTU
Deletes the registry value MTU under MyCo on ZODIAC
4 发表于 2009-06-08 13:03 ·  中国 安徽 合肥 电信
新手上路
积分 2
发帖 2
注册 2009-02-27 11:50
17年会员
UID 140124
性别 男
状态 离线
恩 先看帮助吧!
5 发表于 2009-06-09 03:31 ·  中国 吉林 延边朝鲜族自治州 延吉市 电信
银牌会员
★★★
正在学习中的菜鸟...
积分 1,039
发帖 897
注册 2009-03-01 15:34
17年会员
UID 140302
性别 男
来自 在地狱中仰望天堂
状态 离线
/f 不需要确认, >nul 屏蔽"操作成功"这句输出信息. 2>nul 如果键值不能被删除或不存在,则屏蔽错误输出.
论坛跳转: