Ixel Posted May 6, 2004 Share Posted May 6, 2004 Here is a portion of my script that deletes some reg keys... runwait(regdelete("HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\test")) runwait(regdelete("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\test1")) runwait(regdelete("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\test2")) runwait(regdelete("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\test3")) Is this script syntax correct? Link to comment Share on other sites More sharing options...
emmanuel Posted May 6, 2004 Share Posted May 6, 2004 god damned spotty wireless, second post lost. rtfm. RegDelete -------------------------------------------------------------------------------- Deletes a key or value from the registry. RegDelete ( "keyname" [, "valuename"] ) Parameters keyname The registry key to write to. valuename [optional] The valuename to delete. Return Value Success: Returns 1. Special: Returns 0 if the key/value does not exist. Failure: Returns 2 if error deleting key/value. Remarks A registry key must start with "HKEY_LOCAL_MACHINE" or "HKEY_USERS" or "HKEY_CURRENT_USER" or "HKEY_CLASSES_ROOT" or "HKEY_CURRENT_CONFIG". The key must be upper case! Deleting from the registry is potentially dangerous--please exercise caution! Related RegRead, RegWrite Example RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey") "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
midiaxe Posted May 6, 2004 Share Posted May 6, 2004 If you're using AutoIt v3.0.101, you could use the RegDelete() function to delete registry entries (It's in the documentation). Here's a sample from the doc: RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey") Hope this helps! -MX- Link to comment Share on other sites More sharing options...
Administrators Jon Posted May 6, 2004 Administrators Share Posted May 6, 2004 god damned spotty wireless, second post lost.Jon's guide to forums. Type messagePress Ctrl+A then Ctrl+CClick PostAfter internet dies/forum craps out, paste and send again Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
emmanuel Posted May 6, 2004 Share Posted May 6, 2004 yeah, I used to do that all the time, gotta get back in the habbit. using opera sometimes helps too. "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
CyberSlug Posted May 6, 2004 Share Posted May 6, 2004 Jon's guide to forums. Type messagePress Ctrl+A then Ctrl+CClick PostAfter internet dies/forum craps out, paste and send again I got in that habit too (with the old forums)! Mozilla Firefox has also saved me a lot of grief at other forms when I forget to Ctrl+A,C: (Mozilla's File menu > Work Offline > page back > Work Online) Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now