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.
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.
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.