Strange output of CLS command
Posted: 07 Mar 2015 14:45
Hi! Today I wrote a small batch file called pingStat.bat :
While it runs with no output redirection, it's all OK. But when I tried to log it with
file output was strange
ping_07.03.2015.log:
Later I discovered that or even produces strange character ♀.
Anybody have an idea why that is happening? I may even try to disassemble cmd.exe.
Code: Select all
@echo off
ping google.com -n 8
cls
ping bing.com -n 8
While it runs with no output redirection, it's all OK. But when I tried to log it with
Code: Select all
pingStat > ping_%date%.log
file output was strange
ping_07.03.2015.log:
Code: Select all
[ping statistics for google]
♀
[ping statistics for bing]
Later I discovered that
Code: Select all
CLS > file
Code: Select all
CLS > con
Anybody have an idea why that is happening? I may even try to disassemble cmd.exe.