Quantcast
Channel: Sysinternals Forums
Viewing all articles
Browse latest Browse all 10386

PsTools : psping.exe -q doesnt really make it quiet

$
0
0
Author: Irios
Subject: psping.exe -q doesnt really make it quiet
Posted: 23 December 2014 at 12:32pm

I'm trying to use psping.exe -q in a bat, and I want to send the results to a text file for later processing.

But whenever psping.exe is executed it spews out 5 lines of noise: version info, copyrights, links etc. I cannot have this noise in the script it's being executed from, because it's being directly parsed by another program. This program will fail when it receives all the noise from psping.exe

Its apparently impossible to redirect it to a file or NUL. It wil ALLWAYS end up in the console.
And the progress counter as well.... sigh.


C:\psping -q -n 5 ap.no >output.txt

PsPing v2.01 - PsPing - ping, latency, bandwidth measurement utility
Copyright (C) 2012-2014 Mark Russinovich
Sysinternals - www.sysinternals.com

100%
C:\>

I reported an identical issue with psexec a few years ago (without any response from the developer). And I had to stop using it for this reason. And now it seems like this issue is with all the pstools.

I do realize these are free tools, but they are created specifically for command line use. But they aren't very good for command line use, unless you want to run them solely to view the output with your own eyes - and not for using in bat files or other scripts.

Is there any chance of the developer looking into this please?


Edited by Irios - 19 hours 54 minutes ago at 12:35pm

Viewing all articles
Browse latest Browse all 10386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>