Sign in to follow this  
Followers 0
Chimaera

Automating filechecking, best way forward?

1 post in this topic

#1 ·  Posted (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 hand

after the tool has been run on a new machine we take a log of the remaining items that were missed in this format

==================================================

Name : aaevwcko

Type : Registry -> Machine Run

Command Line : C:Documents and SettingsLOUIS YOUNGLocal SettingsApplication Datagwdqplhvptnrkbnashdw.exe

Disabled : No

Product Name :

File Version :

Product Description:

Company :

Location : HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRun

Process Path : C:Documents and SettingsLOUIS YOUNGLocal SettingsApplication Datagwdqplhvptnrkbnashdw.exe

File Created Time : 12/08/2010 05:32:02

File Modified Time: 12/08/2010 05:31:40

File Attributes : A

File Size : 249,856

Process Created On:

==================================================

==================================================

Name : Advanced System Optimizer

Type : Registry -> Machine Run

Command Line : "C:Program FilesAdvanced System Optimizer 3ASO3.exe" /autorun

Disabled : No

Product Name : Systweak Advanced System Optimizer

File Version : 3.1.648.8773

Product Description: Systweak Advanced System Optimizer

Company : Systweak Inc., (www.systweak.com)

Location : HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRun

Process Path : C:Program FilesAdvanced System Optimizer 3ASO3.exe

File Created Time : 09/05/2012 13:27:13

File Modified Time: 10/02/2011 18:33:52

File Attributes : A

File Size : 3,519,800

Process Created On:

==================================================

And so on with multiple items per text file

I have lots of entries i cannot add because windows needs them etc etc

So 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 added

The specific part i use to search is this

Name : aaevwcko

but only this bit "aaevwcko"

Which is very tedious

What 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 needed

Or the other way and remove what has previously been adde

Or both

Or.. ive no idea

So any suggestions plz

Thx

Edited by Chimaera

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0