Help...Please Change Batch File To Wscript in Scripting and Programming Posted January 27, 2009 @echo offTitle Check WMI Prosesse and StartTASKLIST | find /i "cleanmgr.exe"if errorlevel==1 goto :cleanmgrgoto :Rep:cleanmgr@echo Start Program cleanmgrstart cleanmgr.exegoto :END:ENDexit:Rep@echo Process on runningpauseexitBATCH FILE I Know.....BUT WSCRIPT I Don'Know..... Help me....-------------------------------------------------------------I wold like Wscript Script Check Processes cleanmgr.exe Running... Loop Every 20 MinBut Process cleanmgr.exe stop I wold like Script Start cleanmgr.exe
Help...Please Change Batch File To Wscript
in Scripting and Programming
Posted
@echo off
Title Check WMI Prosesse and Start
TASKLIST | find /i "cleanmgr.exe"
if errorlevel==1 goto :cleanmgr
goto :Rep
:cleanmgr
@echo Start Program cleanmgr
start cleanmgr.exe
goto :END
:END
exit
:Rep
@echo Process on running
pause
exit
BATCH FILE I Know.....
BUT WSCRIPT I Don'Know..... Help me....
-------------------------------------------------------------
I wold like Wscript Script Check Processes cleanmgr.exe Running... Loop Every 20 Min
But Process cleanmgr.exe stop I wold like Script Start cleanmgr.exe