WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: AMO on July 09, 2018, 07:03:29 AM

Title: InI Files
Post by: AMO on July 09, 2018, 07:03:29 AM
Hello everyone.

I seem to be having a little trouble with Reading .ini files anyone have some pointers?
I have been reading everything to try to understand how they read in the ini file, but I cant seem to get the hang of it.

Thank you,
~AMO

Title: Re: InI Files
Post by: JTaylor on July 09, 2018, 07:22:15 AM
Please post an example of what you have tried that fails along with any error messages?

Jim
Title: Re: InI Files
Post by: td on July 09, 2018, 07:32:51 AM
Accessing, creating, deleting and modifying initialization files is both straightforward covered in the Consolidated WIL Help file. The functions include IniReadPvt, IniWritePvt, IniItemizePvt and IniDeletePvt.  There is also a set of similar functions for legacy system initialization files that actually access the registry instead of a file in most cases.  Those functions are maintained for backward compatibility, have the same names as the above except for the "Pvt" on the end of each name, and are seldom used on modern versions of Windows.

Unless you have a more specific question, you might wish to take a look at the functions' documentation in the help file. 
Title: Re: InI Files
Post by: kdmoyers on July 09, 2018, 01:34:52 PM
Well, I can say that inireadpvt and iniwritepvt are solid and useful and forgiving and just great.  The only thing they do NOT do well is arbitrate between multiple users.  But as long as it's just the one user on a local drive, they are rock solid.  I have used them and misused them and they always work as documented.
-Kirby