You are currently offline, waiting for your internet to reconnect

Setting the Default Directory for Windows Applications

This article was previously published under Q65267
This article has been archived. It is offered "as is" and will no longer be updated.
Windows applications normally start in the directory in which the programfiles are located. You may want to have a Windows application start in adifferent directory when running under Microsoft Windows version 3.0. Tohave a Windows application start up in a different directory, do thefollowing:

  1. Verify that the application's directory is listed in the DOS path statement.
  2. Verify that an icon exists for this application and that clicking the icon runs the application.
  3. Highlight the icon and from the Program Manager File menu, choose Properties.
  4. Type the path of the new default directory in the command line of the Program Item Properties dialog box. For example, type C:\XLDATA\EXCEL.EXE to have Excel start in the XLDATA directory.
  5. At this point, you will get the error message The specified path is invalid." Click OK to bypass this message.
The Program Manager will search for the executable file in thedirectory specified in the Command Line entry of the Program ItemProperties dialog box. If the file is not found in that directory, theProgram Manager will search the DOS path, leaving the specifieddirectory as the default.

There are two problems with this technique. First, when the CommandLine is originally entered in the Program Item Properties dialog box,the error message
The specified path is invalid
will appear. Thisindicates that Windows cannot find the executable file in the pathspecified. This does not prohibit Windows from accepting the entry,and Windows will add the program item to the group once OK is chosen.

The second drawback is that Windows will use the default applicationprogram item icon instead of the program's actual icon when displayingthe program item in its group within the Program Manager. To correctthis behavior, do the following:

  1. Select the icon in Program Manager.
  2. From the File menu, choose Properties.
  3. Select Change Icon.
  4. Type the path to the executable file and press the ENTER key.
Pages 89-91 of the "Microsoft Windows User's Guide" for Windowsversion 3.0 has more information about using Windows applications withthe Program Manager.

You may also have non-Windows applications start in different directories.The best method of doing this is to specify the directory you want theapplication to start in at the Start-Up Directory box within the PIF filefor that application.
For more information on this subject, refer to Page 451 of the"Microsoft Windows User's Guide."
3.00 3.0 3.0a 3.00a win30

Article ID: 65267 - Last Review: 02/27/2014 21:00:52 - Revision: 3.0

Microsoft Windows 3.0 Standard Edition

  • kbnosurvey kbarchive KB65267