REG DELETE Batch file
Trying to delete a registry value under local machine registry hive. Following script keep looping in a batch file but works fine on a command line? Any advise plz
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\ABC" /v "ABC100" /F
REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\ABC" /v "ABC100" /F
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
bearden3
14 years ago
In the bottom right corner of the post there is "Report | Rate post | Post #:". You can click on "Rate Post" there.
Thanks!
Thanks!
Posted by:
bearden3
14 years ago
Posted by:
bearden3
14 years ago
Posted by:
stabish
14 years ago
Posted by:
bearden3
14 years ago
I just took your exact string you listed above, pasted it into notepad and saved it as a bat file. I then created the keys (ABC and ABC100) you listed in the bat file. I then ran the bat file and it deleted the ABC100 key, leaving ABC, and terminated with a message "The operation completed successfully."
Is there something else you are doing that you're not mentioning maybe?
Is there something else you are doing that you're not mentioning maybe?
Posted by:
bearden3
14 years ago
ORIGINAL: stabish
This is going to delete the whole registry but im only trying to delete a value under ABC registry...
Actually, the key word to look for is "example". I wasn't doing the work for you. ;) And to be more technically correct, it would not "delete the whole registry" but only the "Windows Update" key and everything under it - not that you would use that here though...
Posted by:
stabish
14 years ago
Yeaaaaaaaaaaaa it worked dude thanks. I guess i was messing with the smae old batch file that i created n started messing with the switches & there might be something that it didn't like so i created a new batch file n copy-paste the script it works like a charm lol
thanks for ur help0 dude ..i'll rate you
thanks for ur help0 dude ..i'll rate you
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.