Terminate Ping command from within console

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION 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.
This topic is 6 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
rasdella
Posts: 37
Last visit: Tue Oct 03, 2023 1:00 pm

Terminate Ping command from within console

Post 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
This topic is 6 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.