Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
OperatorGK
- Posts: 66
- Joined: 13 Jan 2015 06:55
#1
Post
by OperatorGK » 07 Mar 2015 14:45
Hi! Today I wrote a small batch file called pingStat.bat :
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
file output was strange
ping_07.03.2015.log:
Code: Select all
[ping statistics for google]
♀
[ping statistics for bing]
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.
-
dbenham
- Expert
- Posts: 2461
- Joined: 12 Feb 2011 21:02
- Location: United States (east coast)
#3
Post
by dbenham » 08 Mar 2015 07:35
One post too early
I actually talk about it at the end of my
subsequent postDave Benham
-
npocmaka_
- Posts: 512
- Joined: 24 Jun 2013 17:10
- Location: Bulgaria
-
Contact:
#4
Post
by npocmaka_ » 24 Apr 2015 13:24
another way to produce <FF>:
on xp
on (vista?) 7 and above
Code: Select all
del ff /q /f >nul 2>nul
break>e
print /d:ff e
del e /q /f >nul 2>nul
to print to file in XP you need already existing file.On 7 non-existing - at least my tests say so. idk why is this difference.Also on XP PRINTing appends