Contents
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
Search
Login
Navigation
Home Free Software Command line utilities GetPrivateProfileString - An application to read Windows ini files
Most Recent
Featured Articles
Joomla 1.5 Featured Articles
Navigation
Home Free Software Command line utilities GetPrivateProfileString - An application to read Windows ini files
Who Is Online?
We have 123 guests and 1 member online
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
GetPrivateProfileString - An application to read Windows ini files E-mail
User Rating: / 5
PoorBest 
Free Software - Command line utilities
Written by Thomas   
Tuesday, 28 July 2009 13:14

 

GetPrivateProfileString.exe is a command line utility to read Windows ini files.

It is a mere wrapper application for the Windows API GetPrivateProfileString (). The program can be used to read ini file entries, either keys or whole sections, from Windows command line batch files.

 

GetPrivateProfileString 1.0.0.3 - built 2009-07-15 16:37:32
Contact: Thomas - Go to http://www.dateiliste.com for more.

Invocation:

GetPrivateProfileString inifile [[section] key] [default]

Parameters:

inifile    The name of the configuration file.
If this parameter does not contain a full path
to the file, the system searches for the file
in the Windows directory.

[section]  The section name in the configuration file.
This parameter can but does not have to be
enclosed in square brackets [].

key        The key within the section in the configuration
file.

default    The default value returned if key does not exist
in the section.

Return values:

0         No error.
1         Returned when no parameters are provided (like
now) or when too many parameters are given.
2         Out of memory.
3         Returned when default is not used but the key
could not be found in section or inifile does
not exist.

Examples:

GetPrivateProvileString .\IniFile.ini [General] Set DefSet

Retrieves the value of Set in the [General]
section of the file IniFile.ini in the current
directory.
If IniFile.ini has the content below the
value 'MySetting' is retrieved. If the setting
does not exist the value 'DefSet' is returned.

[General]

Set=MySetting

 

Download GetPrivateProfileString.exe (0.04 MiB = 44.0 KiB = 45,056 bytes)

Download GetPrivateProfileString.zip (0.02 MiB = 18.8 KiB = 19,200 bytes)

 

Last Updated on Monday, 22 March 2010 22:07
 
You need to login or register to post comments.
Discuss this item on the forums. (0 posts)
Discuss (0 posts)