batch file help - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Closed Thread
Thread Tools Display Modes
Old 04-22-2008, 11:13 AM   #1 (permalink)
Super Techie
Join Date: Dec 2004
Posts: 487
Send a message via AIM to benzimm86
Default batch file help

I am trying to write a batch file that will delete a registry key because at work our regedit is disabled. So far i am able to get cmd to open and but then it prompts me if im sure i want to delete the reg key. How do i get a y and enter to get filled in automatically? here is what i have so far.

REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Pol icies\System /v DisableRegistryTools

amd athlon xp2100+
asus a7v333 mb
nvidia geforce4mx 420 64 mb
thermaltake volcano 12
1 gig ddr pc2100
thermaltake purepower 420w psu
audigy 2 platinum sound card
benzimm86 is offline  
Old 04-22-2008, 11:39 AM   #2 (permalink)
HONK if you route packets
mikesgroovin's Avatar
Join Date: Sep 2003
Location: MD
Posts: 4,715
Default Re: batch file help

Pretty sure that you can use the /f switch behind your delete command to force the change rather than prompt for the confirmation.
mikesgroovin is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible Corrupted/Infected Files. xXxexpertxXx Viruses, Spyware and Malware 11 03-12-2008 12:18 AM
WTF is a Bad Block? MikesCreation Hardware Repairs and Troubleshooting 18 02-24-2008 08:31 PM
Hard Drive Errors!!! Bad or Faulty HDD? mike4realz Hardware Repairs and Troubleshooting 3 09-19-2007 12:56 AM
seagate 80gigs failing.. acuariano Hardware Repairs and Troubleshooting 27 08-27-2007 09:43 PM
Another Hijack Log boo HijackThis Logs (finished) 17 06-26-2007 11:30 AM

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 09:13 AM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.