VOGONS


First post, by techiecon

User metadata
Rank Newbie
Rank
Newbie

Just wanted to report an incorrect behaviour running a DOS batch file in Dosbox 0.74 under Windows 7 64 bit Ultimate. The following batch file creates a 0 byte temp.txt file even though the line is remarked out. The status window displays Shell:Redirect output to temp.txt

@ECHO off
IF EXIST temp.txt DEL temp.txt
REM ECHO Test > temp.txt
IF EXIST temp.txt GOTO message
ECHO correct path
GOTO end
:message
ECHO incorrect path - temp.txt created
:end
@ECHO on

The batch file executes correctly if Rem is replaced with ::. i.e. does not create temp.txt file or Redirect status message.