epic Posted March 24, 2007 Share Posted March 24, 2007 (edited) I'm looking for a script or some direction on creating a batch file, which will search the entire registry for several variables (key, string, binary, dword... etc) then delete them if exist. Edited March 24, 2007 by epic Link to comment Share on other sites More sharing options...
Yzöwl Posted March 24, 2007 Share Posted March 24, 2007 A lot more, specific, information would be required.Batch files will likely not be the most suitable method, and you may have been better asking in programming section too! Link to comment Share on other sites More sharing options...
epic Posted March 24, 2007 Author Share Posted March 24, 2007 (edited) Sorry, but plenty of specific information provided. Besides, a batch file is ideal for what I need it for. If you want it in programming move it there. Edited March 24, 2007 by epic Link to comment Share on other sites More sharing options...
Yzöwl Posted March 24, 2007 Share Posted March 24, 2007 Well, the best answer I can provide with the information you have NOT provided is already given. A batch file will very likely not be the most suitable method.If you want to not keep getting the same response, kindly provide more, information.An example of what I mean, since you cannot tell us anything to help us to help you.Find all occurrences of variable %UserProfile% in registry.This variable may exist in keynames, valuenames and data. The data alone could be reg_sz, regexpand_sz, reg_multi_sz etc.You want a batch file to search the entire registry looking for any of the above and delete it, with or without prompt, regardless of its data type and regardless of whether the variable exists only as part of a reg_multi_sz. Does the batch need to read the binary data, convert it, parse the contents, remove the variable, reconvert it and write it back to the registry, or are you wanting to delete the entire key, just the all of the data or simply the value.<Edit>Oh and I didnt say I wanted it anywhere, read what I said, don't tell me what to do, and drop the attitude. It is you asking for help and I trying to give it. Without blowing my own trumpet, I consider myself an extremely proficient coder of batch files. I do know what I'm talking about and from what I can ascertain from what you have suggested, a batch file would be an inefficient medium. It would, if it could do it, probably require the help of a third party application too. It is for this reason I suggested that YOU would have been better off posting your question in the programming section.</Edit> Link to comment Share on other sites More sharing options...
Sonic Posted March 24, 2007 Share Posted March 24, 2007 Yzöwl is completely right ... The best is one example ! and after you can adjust solutions/batchs ... 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