Windows 98 Sample Program Information (.pif) FilesID: Q188157
|
Windows 98 includes the following sample program information (.pif) files:
Windows configures conventional memory in the same manner as MS-DOS for
backwards compatibility. The majority of programs written for MS-DOS run
on Windows. If a program does not run in Windows, you can start the
computer in MS-DOS mode to run the program.
A .pif file is used to start a program written for MS-DOS within Windows,
and can also be used to configure a unique environment for individual
MS-DOS-based programs that run in MS-DOS mode.
To create a unique environment for an MS-DOS-based program:
REM ******************************************************
REM ** Sample Windows 98 Program Information File
REM ** Optimize Conventional Memory (TPA)
REM ** Extended Memory (XMS) Support
REM ******************************************************
REM ** This example assumes C:\WINDOWS is the Windows directory
REM ** Modify the path to match your configuration
REM ** Increasing available TPA improves performance in MS-DOS mode
REM ** Load items high to increase available TPA
REM ** The order in which items are loaded may affect utilization of the UMA
REM ** Following are required to load items in upper memory
DOS=HIGH,UMB
DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.EXE NOEMS
REM ** DEVICEHIGH= is required to load a device in upper memory
REM ** OAKCDROM.SYS is a IDE/ATAPI CD ROM driver
REM ** Copy OAKCDROM.SYS from Startup disk to C:\WINDOWS\COMMAND
REM DEVICEHIGH=C:\WINDOWS\COMMAND\OAKCDROM.SYS /D:mscd001
REM ** If compressed with DriveSpace, load it high to increase the TPA
REM DEVICEHIGH=C:\WINDOWS\COMMAND\DRVSPACE.SYS /MOVE
REM ** Install MS-DOS support for hardware in this environment
REM ******************************************************
REM ** Sample Windows 98 Program Information File
REM ******************************************************
REM ** Set environment variables
SET TMP=c:\windows\TEMP
SET TEMP=C:\windows\TEMP
SET PROMPT=MS-DOS Mode $p$g
SET winbootdir=C:\WINDOWS
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
REM ** LH is required to load items in upper memory
REM ** MSCDEX is required to access the CD ROM in MS-DOS mode
REM ** Specify a CD ROM drive letter with /L:[drive letter]
REM LH C:\WINDOWS\COMMAND\MSCDEX.EXE /D:mscd001
CLS
ECHO ******************************************************
ECHO ** Windows 98 MS-DOS Mode **
ECHO ** Extended Memory (XMS) Support **
ECHO ** **
ECHO ** Type EXIT to return to Windows 98 **
ECHO ******************************************************
REM ** Install MS-DOS support for hardware in this environment
REM ******************************************************
REM ** Sample Windows 98 Program Information File
REM ** Optimize Conventional Memory (TPA)
REM ** Expanded (EMS) and Extended Memory (XMS) Support
REM ******************************************************
REM ** This example assumes C:\WINDOWS is the Windows directory
REM ** Modify the path to match your configuration
REM ** Increasing available TPA improves performance in MS-DOS mode
REM ** Load items high to increase available TPA
REM ** The order in which items are loaded may affect utilization of the UMA
REM ** Following are required to load items in upper memory
DOS=HIGH,UMB
DEVICE=C:\WINDOWS\HIMEM.SYS
REM ** EMM386 can emulate EMS within XMS
REM ** The RAM switch sets aside 64K of the UMA as a page frame for use with EMS
REM ** Using multiple of 1024, this example reserves an additional
4mb of XMS for EMS emulation
DEVICE=C:\WINDOWS\EMM386.EXE 4096 RAM
REM ** DEVICEHIGH= is required to load a device in upper memory
REM ** OAKCDROM.SYS is a IDE/ATAPI CD ROM driver
REM ** Copy OAKCDROM.SYS from Startup disk to C:\WINDOWS\COMMAND
REM DEVICEHIGH=C:\WINDOWS\COMMAND\OAKCDROM.SYS /D:mscd001
REM ** If compressed with DriveSpace
REM DEVICEHIGH=C:\WINDOWS\COMMAND\DRVSPACE.SYS /MOVE
REM ** Install MS-DOS support for hardware in this environment
REM ******************************************************
REM ** Sample Windows 98 Program Information File
REM ******************************************************
REM ** Set environment variables
SET TMP=c:\windows\TEMP
SET TEMP=C:\windows\TEMP
SET PROMPT=MS-DOS Mode $p$g
SET winbootdir=C:\WINDOWS
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
REM ** LH is required to load items in upper memory
REM ** MSCDEX is required to access the CD ROM in MS-DOS mode
REM ** Specify a CD ROM drive letter with /L:[drive letter]
REM ** Load MSCDEX file into EMS with /E
REM LH C:\WINDOWS\COMMAND\MSCDEX.EXE /D:mscd001
CLS
ECHO ******************************************************
ECHO ** Windows 98 MS-DOS Mode **
ECHO ** Expanded Memory (EMS) Support **
ECHO ** **
ECHO ** Type EXIT to return to Windows 98 **
ECHO ******************************************************
For information about configuring the amount of conventional memory
that is available for MS-DOS-based programs in Windows, please see the
following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q37242
TITLE : A General Tutorial on the Various Forms of Memory
ARTICLE-ID: Q77083
TITLE : Optimizing Your Use of Upper Memory Blocks
ARTICLE-ID: Q87165
TITLE : Command-Line Switches for MSCDEX.EXE
ARTICLE-ID: Q134399
TITLE : How to Increase Conventional Memory for MS-DOS-Based Programs
ARTICLE-ID: Q138996
TITLE : Description of Restarting Computer in MS-DOS Mode
ARTICLE-ID: Q74210
TITLE : Emulating Expanded Memory Using EMM386.EXE
Keywords : kbenv win98
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: February 9, 1999