Quantcast
Channel: Sysinternals Forums
Viewing all articles
Browse latest Browse all 10386

BgInfo : Obtain data from an INI file

$
0
0
Author: lcox400w
Subject: Obtain data from an INI file
Posted: 01 March 2014 at 4:33pm

I am new to BgInfo but see a lot of possibilities.  I am asking for some assistance with some code that could help us out.  I have searched google, but can not find anything that works.
 
Two of our enterprise apps have to have unique identifiers for each terminal/application. Those identifiers are in an INI file.  I would like to be able to go and read the value in the INI file and then display that value through BgInfo. 
 
Could someone help me with some code that would go out to the location of the INI file and grab the appropriate value from the file and return the result for BgInfo.
 
The line I am looking for in the INI file is TerminalName and the value I want to return is after the = sign as shown below.
TerminalName=CAP1
 
thanks in advance

Viewing all articles
Browse latest Browse all 10386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>