中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-12 00:50
47,811 主题排行 / 349,897 发帖 / 今日 0 篇 / 48,256 会员排行
DOS批处理 & 脚本技术(批处理室) » 批处理删除开机启动项问题
可打印版本  1,203 / 4
第1楼 skycn123 发表于 2009-01-18 11:41
新手上路 发帖 2 积分 8
批处理删除开机启动项问题

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




@echo off
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Ravtary
这是我自己编写的批处理 可是运行起来 要按Y 才能执行 我想让它自动运行,不需要按Y也能执行
请高手帮忙啊~~~~~~~~
第2楼 BaseCoder 发表于 2009-01-18 15:32
初级用户 发帖 13 积分 20
/f
第3楼 HAT 发表于 2009-01-18 15:36
版主 发帖 5,017 积分 9,023
多看帮助
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楼 jieorlin 发表于 2009-06-08 13:03
新手上路 发帖 2 积分 2
恩 先看帮助吧!
第5楼 Hanyeguxing 发表于 2009-06-09 03:31
银牌会员 发帖 897 积分 1,039 来自 在地狱中仰望天堂
/f 不需要确认, >nul 屏蔽"操作成功"这句输出信息. 2>nul 如果键值不能被删除或不存在,则屏蔽错误输出.
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023