Understanding the APPS.INF File

APPS.INF contains a section named [PIF95] that acts as a master list of settings for MS-DOS – based applications. Each line in this section corresponds to a subsequent entry in APPS.INF that contains information about running that specific application.

Each entry in the [PIF95] section uses the following syntax:

app file=%title%, icon file, icon num, set working, section, other file, set pif

Entry

Meaning

app file

The filename, with extension, of the application's executable file.

title

The name that appears in the application's title bar. The string identifier must appear in the [Strings] section of the INF file, set to the quoted name of the application.

icon file

The file from which to extract the application's icon.

icon num

The number from the icon extraction table. The default is 0.

set working

Allows the computer to automatically set the working directory to the one that contains the executable (0, the default), or prevents it from doing so (1).

section

The name of the corresponding section in APPS.INF that contains details about this application.

other file

The key file within a directory for this application, used when two app file entries are identically named.

set pif

The value allowing (0, the default) or preventing (1) creation of a PIF file for this application.


Each section following the [PIF95] section includes entries that define any parameters, any required memory or other options, and options that can be enabled or disabled. For example:


[WORD.EXE]
LowMem=384
Enable=cwe
Disable=win,bgd,asp

The Enabled= and Disabled= entries use the following abbreviations. To separate multiple entries, use commas.

Entry

Meaning

Entry

Meaning

aen

ALT+ENTER

eml

EMS memory locked

aes

ALT+ESC

ems

EMS memory

afp

Allow fast paste

emt

Emulate ROM

aps

ALT+PRINT SCREEN

exc

Exclusive mode

asp

ALT+SPACE

gmp

Global memory protection

ata

ALT+TAB

hma

Use HMA

awc

Automatic window conversion

lml

Low memory locked

bgd

Background

mse

Mouse

cdr

CD-ROM

net

Network

ces

CTRL+ESC

psc

PRINT SCREEN

cwe

Close on exit

rvm

Retain video memory

dit

Detect idle time

rwp

Run Windows applications

dos

Real mode

win

Run in a window

dsk

Disk lock

xml

XMS memory locked