Using run= and load= with Command Line Parameters in WindowsLast reviewed: November 23, 1994Article ID: Q72158 |
The information in this article applies to:
SUMMARYThe run= and the load= lines of the WIN.INI file do not allow programs that accept command line parameters. A workaround is to set up a file association for the data file, causing Windows to load the application with the data file and run the other parameters.
MORE INFORMATIONA file association is an entry in the [Extensions] section of the WIN.INI file that tells Windows what data file extensions an application uses. This allows you to double-click a data file in File Manager and have Windows start the application with the data file loaded.
Windows ApplicationsLet's say you have a program called ONE.EXE that accepts a filename, and has keystrokes to start macros as command line parameters. At the DOS prompt you could use the following command to load this file in the application during startup.
win one testfile.one aIf you want to do this with the run= or load= statements in the WIN.INI file, you will need to make the following changes:
MS-DOS ApplicationsMS-DOS applications allow for a more extensive use of command line parameters through the use of a PIF file. To start a MS-DOS application with command line parameters, use the following procedure:
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |