[comp.windows.ms] How to pass parameters in win.ini?

rob@psy.vu.nl (Rob van Leeuwen) (06/09/91)

Couldn't find this one in the documentation nor in the FAQ,
so I'll ask it here: how can I pass parameters to programs that I want to start
or load automatically, using win.ini?
-- 
Rob van Leeuwen
Department of Psychology, Vrije Universiteit, Amsterdam, the Netherlands
--
Rob van Leeuwen
Department of Psychology, Vrije Universiteit, Amsterdam, the Netherlands

risto@tuura.UUCP (Risto Lankinen) (06/10/91)

rob@psy.vu.nl (Rob van Leeuwen) writes:

>Couldn't find this one in the documentation nor in the FAQ,
>so I'll ask it here: how can I pass parameters to programs that I want to start
>or load automatically, using win.ini?

Hi!

There are two simple steps:

  1. Instead of program names (.EXE), use *file* names to 'load=' or 'run='
     an application.
  2. Associate the corresponding file extensions using the File Manager, at
     which point you can specify the full path of the program you intend to
     run, plus any parameters it may require.

If you want to run an application only, create a dummy file with a unique
extension, then leave out (by editing WIN.INI with Notepad) the '~.<ext>'
part of the association.  Thereafter the name of the dummy file will not
be passed to the program, but 'running' it will start it (the app.) anyway
with the proper command line options.

An example - fragments of WIN.INI :
...
[windows]
load=<datafile>.<ext> ; or run=<datafile>.<ext>
...
]Extensions]
<ext>=C:\<path>\<progname>.EXE/<switches> ~.<ext>
...

terveisin: Risto Lankinen
-- 
Risto Lankinen / product specialist ***************************************
Nokia Data Systems, Technology Dept *  2                              3   *
THIS SPACE INTENTIONALLY LEFT BLANK * 2 +1 is PRIME!  Now working on 2 -1 *
replies: risto@yj.data.nokia.fi     ***************************************