1.

Solve : pausing batch file while app running?

Answer»

Hi there
I am writing a small Java APP which executes a batch file. The idea was to open a antispyware app then scan and fix errors, once that was finished do the same with antivirus app and so on. I'm doing this so my slightly computer illiterate FAMILY can just click a button when ever they FEEL the computer is slow and all these tasks will take care of them selves.

Is there a way to test if a program is runinng from either a batch file or command line. eg. so that when the spyware is scanning the FOLLOWING instructions will WAIT.

ThanksIn a batch file, you can use the CALL statement which will transfer control to your app and wait until it completes before continuing with the next statement.

call antispyware.exe
call antivirus.exe

When running external apps, most languages have a mechanism to implement the same functions as a CALL although it varies from language to language.

Hope this helps. That sounds exactly like the function I'm looking for, I didn't relize thats the way CALL worked.

Thanks



Discussion

No Comment Found