| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | system and user ini |
IJ>Hi Michael Douglass, how are you
IJ>23-Jun-94, Michael Douglass wrote to Ed Blackman
> Subject: system and user ini
IJ>EB>>All of my programs use OS2.INI to store the location and name of
> >>the program INI files (which I obviously make user
configureable), and I
> >>always provide an UNINSTAL.CMD that will delete the program INI file
> >>and/or the reference to it in OS2.INI.
IJ> MD> Yes, but wouldn't it be just as easy to store the program INI in the
> MD> program's directory and use argv[0] to retrieve the directory?
IJ>Then the program could not reside on a readonly-disk such as CDROM,
>write-protected disk, or write-protected hard disk partition.
Good point, never thought of running it from a CD ROM, but then most
programs run from a CDROM install a small number of files anyways, so
the INI could reside there.
IJ>The best solution would be that all program followed the convention
>that their INI-file would reside a directory pointed to by a single
>entry in OS2.INI, so the algorithm for locating a program's private
>INI file would be:
IJ> Get 'PROGRAM_INI_LOCATION' entry from OS2.INI
> If the entry existed
> use that directory for storing the private INI-file
> else
> ask the user where he wants the INI file to be placed.
> write a 'PROGRAM_INI_LOCATION' entry to OS2.INI
That's one of the grandest ideas yet! It would be a definite good idea
for IBM to incorporate this idea into its programming methods and stress
it. This would bundle all the INIs together in one place...
Michael Douglass
___
.Mike's Mail Internet: MICHAEL.DOUGLASS{at}LCHANCE.SAT.TX.US
--- Maximus/2 2.01wb
* Origin: The Rock BBS--410Meg, i486/33, ZyXEL v32bis. (1:387/31)SEEN-BY: 12/2442 54/54 620/243 624/102 632/348 640/820 690/660 711/409 413 SEEN-BY: 711/430 807 808 809 934 942 712/353 623 713/888 800/1 @PATH: 387/31 1102 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.