Chimaera Posted July 4, 2012 Share Posted July 4, 2012 (edited) Ok in one of my scripts i have an array with 500+ items in it which are things im removing from a machine registry.The problem lies in updating this list as i have to do it by handafter the tool has been run on a new machine we take a log of the remaining items that were missed in this format==================================================Name : aaevwckoType : Registry -> Machine RunCommand Line : C:Documents and SettingsLOUIS YOUNGLocal SettingsApplication Datagwdqplhvptnrkbnashdw.exeDisabled : NoProduct Name :File Version :Product Description:Company :Location : HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunProcess Path : C:Documents and SettingsLOUIS YOUNGLocal SettingsApplication Datagwdqplhvptnrkbnashdw.exeFile Created Time : 12/08/2010 05:32:02File Modified Time: 12/08/2010 05:31:40File Attributes : AFile Size : 249,856Process Created On:====================================================================================================Name : Advanced System OptimizerType : Registry -> Machine RunCommand Line : "C:Program FilesAdvanced System Optimizer 3ASO3.exe" /autorunDisabled : NoProduct Name : Systweak Advanced System OptimizerFile Version : 3.1.648.8773Product Description: Systweak Advanced System OptimizerCompany : Systweak Inc., (www.systweak.com)Location : HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunProcess Path : C:Program FilesAdvanced System Optimizer 3ASO3.exeFile Created Time : 09/05/2012 13:27:13File Modified Time: 10/02/2011 18:33:52File Attributes : AFile Size : 3,519,800Process Created On:==================================================And so on with multiple items per text fileI have lots of entries i cannot add because windows needs them etc etcSo i basically have to sit there and read every log and compare to the array to make sure it hasnt been added already and if not then check whether it should be addedThe specific part i use to search is thisName : aaevwcko but only this bit "aaevwcko"Which is very tediousWhat would be the best way to make this process more easy?Do i create a array of the items i dont need and process it somehow against the logfiles and then make it delete the entries that are not neededOr the other way and remove what has previously been addeOr bothOr.. ive no ideaSo any suggestions plzThx Edited July 4, 2012 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() 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