On Mon, 24 May 2004, Petr Tomasek wrote:
> >
> > Make a batch file in DOS, say programm.bat with
> >
> > -----------------------------------
> >
> > cd programm_directory
> > call programm
> > exitemu
> >
> > -----------------------------------
>
> No, that's not the problem. That's the easy part.
> What I need is a (linux) script which has a _linux_file_
> as a parametr that calls a DOS program with
> a _dos_file (that corresponds to that _linux_file) as a parameter.
>
> In other words, the problem is (*how to translate from linux path
> to dos path according to the dosemu.conf / lredir redirs*).
>
> I'm assuming, that we access from the dosemu only files through
> the linux filesystem and not directly from device.
>
> I have read the documentation but found nothnig, that could help me.
according to the ChangeLog:
- Now, you can run your favourite DOS apps like this:
xdosemu "/home/clarence/games/commander keen/keen1.exe"
And it will automatically:
1. mount / if the specified program is not available from an
already-redirected drive
2. "cd" to the correct directory
3. and execute the program automagically, all without _any_
typing in DOS
(if "unix -e" or "unix -c" is put at the end of your autoexec.bat)
man dosemu.bin:
[-E] dos-command
Run DOS command when starting DOSEMU, and, if '-E' is not
given, exit DOSEMU after running the command. The command
can also be given with a Linux path (for example
/home/joeuser/dosemu/freedos/bin/xcopy.exe). Note: this
only works if your autoexec.bat contains a "unix -e" com�
mand.
But you'd like even more I see...
One way is to have a drive, say z: corresponding to the root of the
drive as
lredir z: linux\fs/
then the script could put a z: in front of the Linux name and flip
slashes if the DOS app doesn't like forward slashes.
Bart
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html