blob: fbe844712879a1a62881d3713d24620acd238cec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
@if "%_echo%"=="" echo off
setlocal
if "%_NTSTATLOG%" == "" set _NTSTATLOG=\nt\ntstat.log
if "%_NTSLMBACKUP%" == "" goto nobackup
if "%_NTSTATCMD%" == "" set _NTSTATCMD=\nt\ntstatsr.cmd
goto dostatus1
:nobackup
set _NTSTATCMD=nul
set _NTSTATCMD1=
:dostatus1
if "%1" == "all" goto statall
if NOT "%1" == "" goto doprojects
if "%NTPROJECTS%" == "" goto noprojs
if NOT "%_NTSTATCMD%" == "" erase %_NTSTATCMD% 2>nul
if NOT "%_NTSTATCMD1%" == "" erase %_NTSTATCMD1% 2>nul
erase %_NTSTATLOG% 2>nul
call %0 %NTPROJECTS%
goto done
:statall
if NOT "%_NTSTATCMD%" == "" erase %_NTSTATCMD% 2>nul
if NOT "%_NTSTATCMD1%" == "" erase %_NTSTATCMD1% 2>nul
erase %_NTSTATLOG% 2>nul
call %0 %NTPROJECTS% %NTPROJECTS_EXTRA%
goto done
:noprojs
echo Must define NTPROJECTS environment variable to use this command without arguments
goto done
:doprojects
set _ntgetargs_=
:loop
if "%1" == "" goto loopexit
set _ntgetargs_=%_ntgetargs_% %1
shift
goto loop
:loopexit
call ntslmop status %_ntgetargs_%
:done
endlocal
|