Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 638
  • Last Modified:

Is there an alternative to Ctrl C when running command line as local administrator

Hi Chaps,

I often run command line as a local administrator to trouble shoot a number of problems.  When I issue the ping x.x.x.x. -t command I am not able to Crtl C as you would when running command line normally.  Should I be using a different key stroke to stop the command, if so does anyone knwo what it is?
0
mlbeattie
Asked:
mlbeattie
  • 7
  • 2
1 Solution
 
brady1408Commented:
yes you should be able to use control break
0
 
brady1408Commented:
I'm sorry I should have been more specific, ctrl c sould end the process, if it's not maybe your ctrl key is being sticky, crtl break is an alternitive to ctrl c
0
 
mlbeattieAuthor Commented:
Im sorry i should have been more specific... :-)  I am logged onto a machine as a domain user who has limited rights.  I launch the cmd line from the run box using runas /u:administrator cmd.  If i then type in ping x.x.x.x -t i am not able to stop it using ctrl c nor am I able to use crtl break either....  I have experienced this on any computer i have ever logged onto so was just wondering if anyone had figured out how to do it?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
yesplease151Commented:
I believe the only thing you can do is kill ping.exe through task manager...
0
 
brady1408Commented:
or alternitivly you can use the -t with a number of pings you want to perform

ping 192.168.0.1 -t 25
0
 
brady1408Commented:
excuse me it's -n and the number so

ping 192.168.0.1 -n 25
0
 
brady1408Commented:
By the way are you trying to run something like this from the command prompt?

runas /u:DOMAIN\administrator cmd.exe

if you are you can alway use control break to get your ping stats and then close the cmd window
0
 
brady1408Commented:
Okay I've been all over google  and looked  up about 15 articles on the subject and everyone's stuck on this one. ctrl c just doesn't work with runas or makemeadmin, you either have to use ctrl break to get your stats and close the window or you have to use the task mgr to break the process. No matter where I look people just can't seem to get around this.
0
 
brady1408Commented:
every other program except for wget will break with ctrl break as an alternitive but by design ping and wget won't, but if you really want to have fun you could always go with a third party ping utility that will stop on a ctrl break.
0
 
mlbeattieAuthor Commented:
Ok well i am not sure if i should close this task or leave it open..  Would be great if someone out there could find an answer..  Brady thanks for all your help on this one.  Ill leave it up for a few more days and then accept one of your comments
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now