ChrissieNella
New Member
Progress 8.3.E
Windows 2000 with SP 3
Hi there!
Every night we start a batch file by AT.exe.
This batch file uses pccmd to stop our four databases.
After executing pccmd we get errorlevel 0. Everthing ok!
Before truncating bi-files we make a check for each database if a .lk file exists (in a loop).
At this point our batch doesn't process to the next step. Seems that the .lk files doesn't vanish.
Has anyone an idea what we are doing wrong?
Part of the script:
pccmd proservice stop >> c:/logs/save.log 2>&1
echo pccmd is ending with errorlevel %ERRORLEVEL% >> c:/logs/save.log 2>&1
BONELOOP
if exist D:\ourdirectory\dbs\dbone.lk goto DBONELOOP
BTWOLOOP
if exist D:\ourdirectory\dbs\dbtwo.lk goto DBTWOLOOP
BTHREELOOP
if exist D:\ourdirectory\dbs\dbthree.lk goto DBTHREELOOP
BFOURLOOP
if exist D:\ourdirectory\dbs\dbfour.lk goto DBFOURLOOP
date /T >> c:/logs/save.log 2>&1
time /T >> c:/logs/save.log 2>&1
echo pccmd ready >> c:/logs/save.log 2>&1
The last message in our log is "pccmd is ending with errorlevel 0"
In task manager we can see that our batch is still running with high cpu usage. It's not possible to kill the process with task manager.
Any ideas?
Thanks in advance
Christiane
Windows 2000 with SP 3
Hi there!
Every night we start a batch file by AT.exe.
This batch file uses pccmd to stop our four databases.
After executing pccmd we get errorlevel 0. Everthing ok!
Before truncating bi-files we make a check for each database if a .lk file exists (in a loop).
At this point our batch doesn't process to the next step. Seems that the .lk files doesn't vanish.
Has anyone an idea what we are doing wrong?
Part of the script:
pccmd proservice stop >> c:/logs/save.log 2>&1
echo pccmd is ending with errorlevel %ERRORLEVEL% >> c:/logs/save.log 2>&1
BONELOOP
if exist D:\ourdirectory\dbs\dbone.lk goto DBONELOOP
BTWOLOOP
if exist D:\ourdirectory\dbs\dbtwo.lk goto DBTWOLOOP
BTHREELOOP
if exist D:\ourdirectory\dbs\dbthree.lk goto DBTHREELOOP
BFOURLOOP
if exist D:\ourdirectory\dbs\dbfour.lk goto DBFOURLOOP
date /T >> c:/logs/save.log 2>&1
time /T >> c:/logs/save.log 2>&1
echo pccmd ready >> c:/logs/save.log 2>&1
The last message in our log is "pccmd is ending with errorlevel 0"
In task manager we can see that our batch is still running with high cpu usage. It's not possible to kill the process with task manager.
Any ideas?
Thanks in advance
Christiane