Hello,
This is my first post in this forum, so be gentle. Here is the basic idea of what I am trying to do...
I am trying to write a script that will search through a text file on the c:\ and then take that string and make an edit to a specific registry key. I am trying to run cpuz.exe to find out the L2 cache for the specific PC. I run the exe from a batch file (would like to incorporate that into autoit) with the following line: cpuz.exe -txt=c:\mysystem
Once I have the .txt file on the client computer, I want to have a script that will search the output file for the L2 cache size. I have a attached the .txt file.
example:
512
1024
2048
Depending on the size of the cache, I want to make the correct edit to the following registry key
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"SecondLevelDataCache"=dword:00000200
For the dword value, use the corresponding value for the size of cache:
512 = 00000200
1024 = 00000400
2048 = 00000800
Any help to do this would be great.
Thanks mysystem.txt