question

RobertoBoriotti-1370 avatar image
1 Vote"
RobertoBoriotti-1370 asked ScottL-8980 answered

BGInfo4.28 - Issue with Custom "User Defined Fields" (destroy bginfo.bgi configuration file)

Hi.

I found an issues with BGInfo and use of AND operator in WMI Query.

Example: have a BGInfo.bgi with some (4 ) simple custom User Defined Fields.

I open BGInfo.bgi with BGInfo.
I open Custom field and I see 4 items.
If I added a custom field with WMI Query with this string "SELECT DHCPServer FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled=True" save and exit.
I open BGInfo.bgi with BGInfo.
I open Custom field and I see 4 items.
I created a new custom field with WMI Query and this string "SELECT DHCPServer FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled=True AND NOT description LIKE "%VMware%" AND NOT description LIKE "%Virtual%"
Equal to the previous custom field but adding "..AND NOT description LIKE "%VMware%" AND NOT description LIKE "%Virtual%"
Save and exit.

Bginfo.bgi info destroyed.
Opening it with BGInfo it didn't find all custom fields.
The custom fields are availble in bginfo.bgi (I see it with binarye ditor) but BGInfo didn'r read it right.

Every time I add some string witH AND operator and save it BGInfo didn'r read it right anymore.

Thanks. KR.

windows-sysinternals-bginfo
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ScottL-8980 avatar image
0 Votes"
ScottL-8980 answered

I don't have a solution, but I did experience this issue. I can't remember how I got around it, but I want there to be a record that someone else had this happen. I keep backups of .bgi files off to the side now.

This may be what got me past this issue ... As I add new Custom fields to BgInfo over time, it's a pain to create them in all of my older older .bgi files. After adding new Custom fields, I now delete everything from the left pane (where you create your format) and save the .bgi to use as my template. Then I open an old .bgi file, copy the contents of the left pane, open my new template file and paste them in there and save with a new (or the old) .bgi name - as long as it's not the template file name.

Share here if this fixes this for you.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.