@echo off
rem
rem     RESMON Ressourcenmonitoring ueber Funktionsgruppen eines
rem     gesamten Programmstands auf D:\...
rem     Adresslayout fuer MED7.1.1 C-Muster
rem     Aufruf resmon <pst>  z.B. resmon_med711 l: d: D15156D3
rem Ausgabedatei <pst>_grp.txt
rem 
rem K3/ESI4-Wi 07.05.01
rem 
IF %1.==/?.  GOTO MSG
IF %1.==.    GOTO MSG
IF %2.==/?.  GOTO MSG
IF %2.==.    GOTO MSG
IF %3.==/?   GOTO MSG
IF %3.==.    GOTO MSG

@echo on
del moduls.txt
%2
cd \%3
n:\programme\diverses\resmon_c -find[*.c;*.a66;*.mcc] -omoduls.txt
copy moduls.txt %1\Esi4\Dokumentation\Resmon\MED711
%1
cd %1\Esi4\Dokumentation\Resmon\MED711
copy %2\%3\progst\progst.dbm %3.dbm
REM N:\programme\diverses\resmon_c %3.dbm %2\%3\outabgab\ hw_MED711.txt -excel moduls.txt
N:\programme\diverses\resmon_c %3.dbm %2\%3\outabgab\ hw_MED711.txt
del %3.DBM
ren ERGEBNIS.TXT %3_grp.txt
md %1\Esi4\Dokumentation\Resmon\MED711\%3
copy %3_grp.txt %1\Esi4\Dokumentation\Resmon\MED711\%3
del %3_grp.txt 
GOTO END

:MSG
echo usage: resmon drive1 drive2 pst_name
echo        drive1:   mapped drive for K3ESI_DATEN
echo        drive2:   drive for PST
echo        pst_name: name of PST
echo ÿ
echo i.e. resmon_med711 l: d: D15156D3
pause

:END
