1.

Solve : Repeated executing of Commands?

Answer»

Hi all ,

I just want to EXECUTE the command " pslist -m WINWORD>>Memory.txt" For n number of times with a delay of n secs. Can anybody provide me a smart solution for this.

Command execution was succesfull for one time.


thanks
venki Without an OS no DEFINITIVE answer can be given, but this might work on your MACHINE:

Code: [Select]
@echo off
set x=0
:loop
pslist -m WINWORD>>Memory.txt
ping -n 3 127.0.0.1 > nul
set /a x=x+1
if %x% lss 5 goto loop


Code is set to run five times with 2 second DELAYS. You can change to your hearts content.



Discussion

No Comment Found