I am running program wherein sometimes UNHANDLED EXCEPTION popped-out then I need to click quit then re-run the program. There will be txt file if there's an unhandled exception.
But what I want to do is that to check textfile1 if it has new/updated error (wherein time and date will be the unique) he will close the unhandled exception then re-run the program then it will check the next text file (textfile2) and it will do the same.
@echo off
For /L %%G IN (1,1,5) DO (
>if find "Time" catch.txt && (
START "C:\Program Files\program" program.exe
Echo Redmi Started
) || (
echo "Time" was NOT found.
)
goto :eof
)
pause
I have this script as well but I dont know how I can join them
@echo on
title DOS-Based Clock
color 0a
cls
:CLOCK
cls
echo The current time is: %time%
goto CLOCK
Aucun commentaire:
Enregistrer un commentaire