0

I'm working on a batch file which get remote user process by tasklist. When i press ctrl+c to terminate running process and press Y, it closes the batch file.

But My requirement is to move on specific Label say :start.

Mazhar Ali
  • 111
  • 2
  • 6

1 Answers1

1

Ctrl+C is actually a pre-programmed part of CMD/batch, not manipulable part of the file. Unless you use a program like batbox in your .bat file, you will not be able to directly manipulate the Ctrl+C command. Even with batbox, I am not sure that you will be able to manipulate the Ctrl+C.

Hope this helps.

Find the batbox program here:BATBOX download and info

I am not from batbox, just have used the program before with some successes and failures.

mx0
  • 6,445
  • 12
  • 49
  • 54
Eternal_Dusk
  • 175
  • 12