Parse Policy File

(imported topic written by SystemAdmin)

hi @all,

I want to parse the wueropol.txt file to search for the ScreenSaveTimeOut value.

next line of next line of line containing “ScreenSaveTimeOut” of file “c:\temp\wueropol.txt”

The result is:

/DATA:S “900”

Is it possible only to get the value 900 without quotes and so on…

Thanks Andi

(imported comment written by NoahSalzman)

This is one way to do it, but it may be brittle if the ordering of the lines is not consistent.

q: following texts of first “%22” of preceding texts of last “%22” of line ((line number of lines whose (it contains “ScreenSaveTimeOut”) of file “c:\test.txt”) + 2) of file “c:\test.txt”

A: 900