I want to write a batch file. It takes several parameters; some of them are standalone items, while some others must be run only after UCDOS is running. That creates a problem: if I put
\ucdos\rd16
\ucdos\knl
at the front, then those items that don't need UCDOS will also have to be run only after UCDOS is running, which is annoying. If I don't put UCDOS at the front, then those programs that must run under UCDOS will each need to have \ucdos\rd16 ; \ucdos\knl added to them. That's somewhat repetitive and cumbersome. And those items will end up starting UCDOS repeatedly, even though starting UCDOS once is enough.
Is there any good way to solve this?
Can I make a check in the batch file to determine whether UCDOS is already running?
\ucdos\rd16
\ucdos\knl
at the front, then those items that don't need UCDOS will also have to be run only after UCDOS is running, which is annoying. If I don't put UCDOS at the front, then those programs that must run under UCDOS will each need to have \ucdos\rd16 ; \ucdos\knl added to them. That's somewhat repetitive and cumbersome. And those items will end up starting UCDOS repeatedly, even though starting UCDOS once is enough.
Is there any good way to solve this?
Can I make a check in the batch file to determine whether UCDOS is already running?



