I would like to check a specified .ini file C:\Users\ABC\AppData\Roaming\XnViewMP\xnview.ini for a section called [Browser] and look within only that section for a line that starts with state=@ByteArray.
If the line that is found matches the text shown below, then do nothing. But if the text does not match, then replace the exisitng line with the text shown below, and then save the .ini file:
Code: Select all
state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\0\0\0\x2\x34\0\0\x1\xfd\xfc\x2\0\0\0\x2\xfb\0\0\0\xe\0\x66\0i\0l\0t\0\x65\0r\0\x44\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\xfc\0\0\0\x42\0\0\x1\xfd\0\0\0\x7f\0\xff\xff\xfe\xfa\0\0\0\0\x2\0\0\0\x3\xfb\0\0\0\xe\0\x66\0o\0l\0\x64\0\x65\0r\0\x44\x1\0\0\0\0\xff\xff\xff\xff\0\0\0V\0\xff\xff\xfe\xfb\0\0\0\x12\0\x66\0\x61\0v\0o\0r\0i\0t\0\x65\0\x44\x1\0\0\0\0\xff\xff\xff\xff\xff\xff\xff\xff\0\xff\xff\xff\xfb\0\0\0\x12\0\x63\0\x61\0t\0\x65\0g\0o\0r\0y\0\x44\x1\0\0\0\0\xff\xff\xff\xff\xff\xff\xff\xff\0\xff\xff\xff\0\0\0\x3\0\0\x6\xc1\0\0\x1-\xfc\x1\0\0\0\x3\xfb\0\0\0\n\0p\0r\0\x65\0v\0\x44\x1\0\0\0\0\0\0\x2\x37\0\0\0\x87\0\xff\xff\xff\xfb\0\0\0\x16\0P\0r\0\x65\0v\0i\0\x65\0w\0\x44\0o\0\x63\0k\x1\0\0\x2<\0\0\x2\x35\0\0\0W\0\xff\xff\xff\xfc\0\0\x4v\0\0\x2K\0\0\x1:\0\xff\xff\xff\xfa\0\0\0\x1\x2\0\0\0\x2\xfb\0\0\0\b\0\x63\0\x61\0t\0\x44\0\0\0\0\0\xff\xff\xff\xff\0\0\0u\0\xff\xff\xfe\xfb\0\0\0\n\0s\0\x65\0t\0s\0\x44\x1\0\0\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