1.

Solve : how to count process?

Answer»

Now I have two batch job and primary batch job call secondary batch job and I want to COUNT number of run time of primary batch job No sure what you NEEDED, but this piece of ragged CODE will keep a running count. PLACE it in your primary file.

Code: [Select]
@echo off
if not exist countfile echo 0 > countfile
for /f %%a in (countfile) do (
set /a newcount=%%a+1
)
echo %newcount% > countfile
set newcount=


Hope this helps.



Discussion

No Comment Found