Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set ProgrammExe=notepad++.exe
- set ProgrammPfad=E:\Notepad++
- set zeitSek=300
- cd /d "%ProgrammPfad%"
- :refresh
- set /a zeitMins=%zeitSek%/60
- cls
- tasklist|find "%ProgrammExe%">nul
- if not errorlevel 1 echo Programm l„uft noch&goto :time
- echo Programm wird gestartet...&start %ProgrammExe%
- :time
- echo Warte %zeitMins% Minuten...
- ping localhost -n 60>nul
- set /a zeitMins=%zeitMins%-1
- if "%zeitMins%"=="0" goto :refresh
- cls&goto :time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement