Windows equivalent of Ctrl-Z and fg?

Microsoft Windows
Post Reply
User avatar
MigrationUser
Posts: 336
Joined: 2021-Jul-12, 1:37 pm
Contact:

Windows equivalent of Ctrl-Z and fg?

Post by MigrationUser »

01 Feb 2012 07:33
Platycryptus

Hi, I'm doing some testing of my dissertation software on my laptop which runs Vista. But sometimes, I would like to suspend my test scripts so that I can run a different shorter test.

On Unix, I would just hit ctrl-z on my main test script, run my other tests, then return to my console and enter "fg." I'd prefer to not run concurrently because I'm interested in how quickly the software is executing...

Is there any easy way to do this in Windows? I'm guessing there is a hard way since I believe SIGSTP is specified in POSIX...

----------------------------

#2 01 Feb 2012 12:57
RG


ctrl c

Windows Shell Scripting and InstallShield

----------------------------

#3 01 Feb 2012 17:16
Platycryptus


The problem with ctrl-c is that it kills the instance of my .exe that the batch is running... Then it becomes a nuisance to determine which tests didn't run to completion later...

Is there an easy way to suspend the batch without killing child processes?

----------------------------

#4 01 Feb 2012 19:06
Simon Sheppard


Pausing or stopping a batch script

Execution of any batch script can be paused by pressing CTRL-S
This also works for pausing a single command such as a DIR listing
Pressing any key will resume the operation.
https://ss64.com/nt/cmd.html

----------------------------

#5 01 Feb 2012 21:37
Platycryptus


Thanks a bunch. That works perfectly!

----------------------------

#6 02 Feb 2012 10:05
bluesxman


The "Pause|Break" key should have the same effect.
Post Reply