Terminate Ping command from within console

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
Andras
Posts: 15
Joined: Thu May 14, 2015 3:27 pm

Terminate Ping command from within console

Post by Andras » Wed May 31, 2017 3:43 pm

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