DOCERR: File Manager Doesn't Associate PWB Makefiles

ID: Q87514

7.00 | 7.00 MS-DOS | WINDOWS kbtool kbdocerr

The information in this article applies to:

SYMPTOMS

Page 67 of C/C++ version 7.0 "Environment and Tools" manual suggests associating a .MAK file with Programmer's WorkBench (PWB) using the File Manager. This will not work as described under Microsoft Windows 3.1; however, it will work as described under Windows 3.0. When a .MAK file is associated with PWB using the command line

   pwb.pif /PP

with the association feature of the Windows 3.1 File Manager, an error occurs. The error says that the association is not an executable and cannot be used.

CAUSE

Windows 3.1 will not allow parameters to be specified for the command to be executed on an association. Windows 3.0 does allow this syntax.

RESOLUTION

A possible workaround is to create a batch file to be associated with the .MAK files. For example:

   if "%1" == "" goto label
   call pwb.exe /PP %1
   goto end
   :label
   call pwb.exe
   :end

With the Windows PIF Editor, change the program filename for PWB.PIF from PWB.EXE to the name of the batch file created (for example, PWB.BAT). This will simulate the preferred response.

Additional reference words: 7.00 KBCategory: kbtool kbdocerr KBSubcategory: PWBIss Keywords : kb16bitonly

Last Reviewed: July 18, 1997