Page 1 of 1

Terminate Ping command from within console

Posted: Wed May 31, 2017 3:43 pm
by rasdella
Product, version and build:

PSVersion 5.0.10586.117
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.10586.117
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

32 or 64 bit version of product:64
Operating system:Windows 7 SP1 Enterprise 64Bit
32 or 64 bit OS:64
PowerShell Version:5.0.10586.117

If I run ping computername -t from within the Console - how do you gracefully terminate this so as to note loose any information currently displayed? Ctl + C doesn't work, which would work in the standard DOS Window. If I right click in the active console window and select cancel execution nothing happens. If I right click in the active console Window and select restart shell I loose the output to date.

I understand that I am not running a powershell command but am interested in how to solve this from within the shell - is it possible?

Thanks