Save Ping Output to Text File
<p>I am using this batch command to save ping output to a text file,</p>

<p><code>ping 10.226.2.10 -n 10 &gt;&gt;ping_ip.txt</code></p>

<p>But when i saved the above command in a batch file and trying to run it, in command prompt window my command gets converted to the below command... </p>

<pre><code>ping 10.226.2.10 -n 10  1&gt;&gt;ping_ip.txt
</code></pre>

<p>you can see there is extra 1 in <code>1&gt;&gt;</code> in the second command, i don't know how it came.. somebody please give your valuable opinion on the same</p>