Multiple start-up files
I am attempting to start dos with icon#1 and run autoexec (diff name) #1; OR icon#2 with autoexec (2nd diff name)#2.
Intent: 1 icon puts me in my menu structure, the other gives me an empty screen with a c: prompt.
I tried the xdosemu -input '\r' -quiet -E startup1
didn't work in the icon.
ran it from the c: prompt in a console window. It executed (I think), then back to the john@sentry prompt. Boot.log did not mention any command line errors. The 2 startup files are in the same dir as the autoexec that I execute.
I could not find the -input and -quiet cmd line opts in the docs.
I also could not find a reference to autoexec in the config files. all I really want to do is set an enviornment variable. The 2 line (3 with set) autoexec calls a startlin.bat on my dos d: drive. Here I test the env var and fork accordingly.
Signature · 10 lines
John Sowden American Sentry Systems. Inc. 1221 Andersen Drive San Rafael, CA 94901 U.L. Listed Central Station Alarm Service Serving the San Francisco Bay Area Since 1967 [email protected] http://www.americansentry.net
Quoted 1 line · John Sowden
I could not find the -input and -quiet cmd line opts in the docs.
it's in the dosemu manpage.
Quoted 4 lines
I also could not find a reference to autoexec in the config files. all I really want to do is set an enviornment variable. The 2 line (3 with set) autoexec calls a startlin.bat on my dos d: drive. Here I test the env var and fork accordingly.
-E only works if you use the autoexec.bat that comes with dosemu-freedos (or adjust your own one to work in the same way).
Bart
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
John Sowden writes:
John> I am attempting to start dos with icon#1 and run autoexec (diff John> name) #1; OR icon#2 with autoexec (2nd diff name)#2.
I'm using cmdline.com for this purpose.
lredir z: linux\fs\proc\self
cmdline < z:\cmdline
lredir del z:
IF "%EXEC%" == "" goto done
%EXEC%
exitemu
:done
And run dosemu as 'xdos exec=myprog.bat' for example.
Signature · 1 line
Sergey Suleymanov
Quoted 11 lines · Sergey Suleymanov
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
John Sowden writes:
John> I am attempting to start dos with icon#1 and run autoexec (diff John> name) #1; OR icon#2 with autoexec (2nd diff name)#2.
I'm using cmdline.com for this purpose.
lredir z: linux\fs\proc\self
cmdline < z:\cmdline
lredir del z:
Quoted 6 lines
IF "%EXEC%" == "" goto done
%EXEC%
exitemu
:doneAnd run dosemu as 'xdos exec=myprog.bat' for example.
just to clarify: the dosemu-freedos autoexec.bat uses
unix -e
which by default executes what is given behind "-E" in the command line.
Also, FWIW if you use
unix -e EXEC
in autoexec.bat then you could use
EXEC=myprog.bat xdos
or dos, or dosemu, or xdosemu, depending on your installation.
Bart
On Fri, Feb 07, 2003 at 02:19:31AM -0500, Bart Oldeman wrote
Quoted 10 lines
just to clarify: the dosemu-freedos autoexec.bat uses
unix -e
which by default executes what is given behind "-E" in the command line.Also, FWIW if you use
unix -e EXEC
in autoexec.bat then you could use
EXEC=myprog.bat xdos
or dos, or dosemu, or xdosemu, depending on your installation.
The dosemu -I parameter with keystroke can be used. I start my apl-session with the following shellscript:
#!/bin/sh
nice -n +10 xdos -f /home/kar/.dosemuaplrc -I 'keystroke "e:\rcd apl2\rrun\r\Mi)load quincy97"'
run is run.bat to start the apl interpreter, )load quincy97 is an input to the interpreter.
I connected the shellscript with an icon.
This type of startup doesn't depend of the typ of your DOS.
Reinhard