|
Post by baronsoftware on Jan 29, 2020 21:24:10 GMT 1
If i wanted to do the following what would the syntax look like ?
VDOS.EXE "MENUOPTION"
I have Start.Bat in the Autoexec.txt and want to pass a parameter into the Start.Bat
Would VDOS use the reference of %1 when starting the Start.Bat that runs my DOS application ?
I believe VDOSVAR is only for system environments, is that true ?
|
|
|
Post by Jos on Jan 29, 2020 21:34:06 GMT 1
You would mean the environment variable WIN_VDOS in vDos/DOS. That is set to the Windows VDOS environment variable, or whatever you put after “vDos.exe”.
So you would do: vDos.exe MENUOPTION Start.bat %WIN_VDOS%.
Jos
|
|
|
Post by baronsoftware on Jan 29, 2020 22:19:00 GMT 1
In my initial batch job, i am doing
SET VDOS=MENUOPTION
Calling VDOS
In the start.bat
I have
CALL PROGRAM %WIN_VDOS%
It actually works, is this correct or should i change it to you method.
|
|
|
Post by Jos on Jan 29, 2020 22:32:19 GMT 1
It’s your choice, no ‘my method’. Yours requires something (a Windows batch file) to set Windows VDOS environment variable, before vDos is started, Using shortcuts to start vDos, “...vDos.exe MENUOPTION” seems more appropriate/conclusive.
Jos
|
|