Let's say I have three commands that I run like this:
a && b && c
This will run b after a completes, and c after b completes.
What if I did this:
a && b
While this is running, I want to append c as a conditional command. Can it be done?
|
I would do this:
You can also define an alias or function, eg |
|||
|
|
|
The result of the last operation is stored in You can e.g. use it like this
Make it a function or similar in your |
|||||
|
|
For NT, you can type your new command and hit ENTER while a current command is running. So for example, c:\blah>dir /s where blah is big enough that you'll have time to type while stuff scrolls onto the screen. now all this stuff scrolls on the screen and while it is appearing, type mem then after dir /s is complete, mem will run. |
|||||||||||||
|
bashis a good assumption. – Daniel Beck♦ Feb 14 '11 at 11:30