Example:
file.txt with:
text1[1A]text2
type file.txt
will print only text1
but type file.txt > mirror.log
mirror.log will have the same data that file.txt
I'm curious about why the data stop on the screen but not on the redirection file
Moderator: DosItHelp
text1[1A]text2
Then just call:test.dat wrote:68 69 1A 74 68 65 72 65
Code: Select all
Z:\>cmd /U
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
Z:\>type test.dat > test2.dat
You can see that it is not caused by the output stream with this batch:test2.dat wrote:68 00 69 00
Code: Select all
@echo off
(
cmd /d /u /c type "test.dat"
echo abc
) > "test3.dat"
test3.dat wrote:68 00 69 00 61 62 63 0D 0A