<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How Can I Modify the Output of the Ping Command?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2006/08/17/how-can-i-modify-the-output-of-the-ping-command.aspx</link><description>Hey, Scripting Guy! How can I place the current date and time at the beginning of each line of Ping.exe output? -- AL 
 Hey, AL. We have to admit, we were a little shocked by your question. Change the output of the Ping command? Really, AL. Would you</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How Can I Modify the Output of the Ping Command?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2006/08/17/how-can-i-modify-the-output-of-the-ping-command.aspx#3527461</link><pubDate>Thu, 18 Oct 2012 21:44:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3527461</guid><dc:creator>AE</dc:creator><description>&lt;p&gt;Opps, I lost everything I typed.... go figure. Long story short with Windows 7 and Windows Script Host Version 5.8 objShell.Exec does not run with a hidden window. The code below captures input and runs it hidden:&lt;/p&gt;
&lt;p&gt;Set objShell = CreateObject(&amp;quot;Wscript.Shell&amp;quot;)&lt;/p&gt;
&lt;p&gt;Set objFSO = CreateObject(&amp;quot;Scripting.FileSystemObject&amp;quot;)&lt;/p&gt;
&lt;p&gt;Const TemporaryFolder = 2&lt;/p&gt;
&lt;p&gt;RunDOSCommand(&amp;quot;ipconfig&amp;quot;)&lt;/p&gt;
&lt;p&gt;Sub RunDOSCommand(command)&lt;/p&gt;
&lt;p&gt;	TempFile = objFSO.GetSpecialFolder(TemporaryFolder) &amp;amp; &amp;quot;\&amp;quot; &amp;amp; objFSO.GetTempName&lt;/p&gt;
&lt;p&gt;	objShell.Run &amp;quot;%comspec% /c &amp;quot; &amp;amp; command &amp;amp; &amp;quot; &amp;gt;&amp;quot; &amp;amp; TempFile, 0, True&lt;/p&gt;
&lt;p&gt;	Results = Split(objFSO.OpenTextFile(TempFile).ReadAll, vbcrlf)&lt;/p&gt;
&lt;p&gt;	objFSO.DeleteFile TempFile&lt;/p&gt;
&lt;p&gt;	For Each i in Results : If trim(i) &amp;lt;&amp;gt; &amp;quot;&amp;quot; Then Msgbox i&lt;/p&gt;
&lt;p&gt;	Next&lt;/p&gt;
&lt;p&gt;	Msgbox Join(Results, vbcrlf)&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3527461" width="1" height="1"&gt;</description></item></channel></rss>