Board logo

标题: 批处理删除开机启动项问题 [打印本页]

作者: skycn123     时间: 2009-1-18 11:41    标题: 批处理删除开机启动项问题


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




@echo off
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Ravtary   
这是我自己编写的批处理 可是运行起来 要按Y 才能执行  我想让它自动运行,不需要按Y也能执行
请高手帮忙啊~~~~~~~~
作者: BaseCoder     时间: 2009-1-18 15:32
/f
作者: HAT     时间: 2009-1-18 15:36
多看帮助

  Quote:
C:\Test>reg delete /?

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


REG DELETE KeyName [/v ValueName | /ve | /va] [/f]

  KeyName    [\\Machine\]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  [ HKLM | HKCU | HKCR | HKU | HKCC ]
    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


作者: jieorlin     时间: 2009-6-8 13:03
恩 先看帮助吧!
作者: Hanyeguxing     时间: 2009-6-9 03:31
/f 不需要确认, >nul 屏蔽"操作成功"这句输出信息. 2>nul 如果键值不能被删除或不存在,则屏蔽错误输出.