VOGONS

Common searches


First post, by easyw

User metadata
Rank Newbie
Rank
Newbie

Hi there,
I'm a novice in this forum and I discoverd DOSbox because I had to run an old DOS sw in a XP environment on recent PC.
I tried DOSBox v0.63 for Windows XP. The DOS application works fine!
But in some cases that application needs to to redirect STDOUT to a file.
... something like "C:\>APPL.EXE > fileout.txt".
This feature seems not to work. I searched in the forum and I found only old messages.
Any news about the redirection option?
It will be added in the next release?
Please let me know if there is an option to configure DOSBox to work with this option.

Thanx in advance!
😀 Maurice

Reply 2 of 2, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

I can't get the redirect to work 🙁

Tested with 0.66rc3.

Created TESTOUT.BAT:

echo abc > file.out
echo def >> file.out

Running TESTOUT.BAT from the DOSBox command prompt gives me the expected:

C:\>TESTOUT.BAT
C:\>echo abc > file.out

C:\>echo def >> file.out

C:\>

and 2 messages to the DOSBox Status Window:

SHELL:Redirect output to file.out
SHELL:Redirect output to file.out

Checking the directory shows the expected 8 byte FILE.OUT:

dir FILE.OUT
Directory of C:\.
FILE OUT 8 01-03-2006 2:21
1 Files(s) 8 Bytes
0 Dir(s) 110,540,800 Bytes Free.

Changing TESTOUT.BAT to:

echo abc
echo def

and running it from the command prompt with redirected STDOUT gives me:

C:\>TESTOUT.BAT > file.out
C:\>echo abc
abc

C:\>echo def
def

C:\>

and a message to the DOSBox Status Window:

SHELL:Redirect output to file.out

Checking the directory shows an empty file:

dir FILE.OUT
Directory of C:\.
FILE OUT 0 01-03-2006 2:30
1 Files(s) 0 Bytes
0 Dir(s) 110,540,800 Bytes Free.

Seems like redirecting works with single commands, but not with files?

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32