タスク スケジューラが 2 つのインスタンスの実行を停止しているようには見えないため、新しいインスタンスを開始しないように既に有効にしています。
1 に答える
1
Presuming you are actually asking for a batch solution rather than a Java one, and provided that you are starting the Java programs from the batch then you could do something like this
tasklist /nh /fi "imagename eq java.exe" | find /i "java.exe" >nul && (
echo Java already running, not going to run again
) || (
echo Java not running, so run it
java.exe whatever
)
Obviously you will have to replace java.exe whatever
with your actual command.
If this isn't what you are looking for please add more specific info/requirements.
于 2013-01-29T14:22:02.677 に答える