Microsoft KB Archive/81096

= Windows PIF File Search Processes =

Article ID: 81096

Article Last Modified on 7/19/2005

-

APPLIES TO


 * Microsoft Windows 2.03 Standard Edition
 * Microsoft Windows 2.1 Standard Edition
 * Microsoft Windows 2.11 Standard Edition
 * Microsoft Windows 3.0 Standard Edition

-



This article was previously published under Q81096



Windows/286, Windows/386
When you activate an application with the extension .COM, .EXE, or .BAT, Windows will search for a PIF file in the following order:  The WIN.INI [pif] section The directory where the executable file is specified As follows, where is the directory in which Windows is initially executed (usually \WINDOWS):

 If the executable file is a .PIF file, Windows looks in \PIF; then, it looks along the path. If the executable file is not a .PIF, Windows looks along the path; then, it looks in \PIF. 

Windows 3.0
Attempting to start a non-Windows-based application may result in the execution of the wrong non-Windows-based application. This problem occurs because of Windows 3.0's search algorithm. When Windows prepares to run a non-Windows-based application, it searches for a .PIF file with the same name as the executable file. The first .PIF file found is executed.

Windows searches the directory in which the application is located, the WINDOWS directory, and the directories in the PATH statement. If Windows finds no .PIF file, it uses _DEFAULT.PIF.

<div class="moreinformation_section">

MORE INFORMATION
For example, Quicken and Quattro Pro have the same executable filename. An attempt to run Quicken (Q.EXE) may result in the execution of Quattro Pro (Q.EXE) if the first Q.PIF file found points to the incorrect Q.EXE file, unless one of the following steps is taken:  Rename the .PIF file to a unique name. For example, rename Q.PIF to QUICKEN.PIF or QUATTRO.PIF.

-or-</li> Move the .PIF file into the directory containing its .EXE file: For example, move Q.PIF for Quicken to the QUICKEN directory, or Q.PIF for Quattro Pro to the QUATTRO directory.

-or-</li> Do the following:

 From the Program Manager, select the icon you want to edit.</li> From the File menu, choose Properties.</li> In the Command Line text box, type the [Drive][Path][Filename.PIF] of the .PIF file you want to run. For example, C:\QUICKEN\Q.PIF instead of Q.PIF.</li></ol> </li></ol>

Additional query words: 1.00 2.00 2.x 3.00 3.00a win30 q.exe quicken quattro quatro qpro pif

Keywords: KB81096

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.