cancel
Showing results for 
Search instead for 
Did you mean: 

windows scripts for running jobs / active drives findings

Michal_Mikulik
Level 3
Hello,
 
does somebody have scripts for Windows environments, which are able to check for running jobs and active drives?
For example:
if "there are running jobs" then
run
2 REPLIES 2

Michal_Mikulik
Level 3
It is only complete desription of post, I ended previous prematurely.
 
Hello,
 
does not somebody have scripts for Windows environments, which are able to check for running jobs and active drives?
 
For example:
if "there are running jobs" then
run something
else
run something else
end
 
And the similar one for active drives.
 
 
Thanks in advance
Regards
Michal

Patrick_Whelan_
Level 6
You can try:

bpdbjobs | find "Active"
if %ERRORLEVEL% 1 goto active
rem "do something here for non active"
goto exit
:active
rem "do somehting here for active"
:exit