Article ID: 65267 - View products that this article applies to.
This article was previously published under Q65267
Windows applications normally start in the directory in which the program files are located. You may want to have a Windows application start in a different directory when running under Microsoft Windows version 3.0. To have a Windows application start up in a different directory, do the following:
The Program Manager will search for the executable file in the directory specified in the Command Line entry of the Program Item Properties dialog box. If the file is not found in that directory, the Program Manager will search the DOS path, leaving the specified directory as the default.
There are two problems with this technique. First, when the Command Line is originally entered in the Program Item Properties dialog box, the error message
will appear. This indicates that Windows cannot find the executable file in the path specified. This does not prohibit Windows from accepting the entry, and Windows will add the program item to the group once OK is chosen.
The specified path is invalid
The second drawback is that Windows will use the default application program item icon instead of the program's actual icon when displaying the program item in its group within the Program Manager. To correct this behavior, do the following:
You may also have non-Windows applications start in different directories. The best method of doing this is to specify the directory you want the application to start in at the Start-Up Directory box within the PIF file for that application.
For more information on this subject, refer to Page 451 of the "Microsoft Windows User's Guide."