Advertisement
Guest User

run_prog_in_cicle_bat

a guest
Jul 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. @echo off
  2.  
  3. set PPATH=%windir%\system32\notepad.exe
  4. set RUNFILE="notepad.exe"
  5.  
  6. ::10000 - 10 second
  7. set SLEEP_MSEC=10000
  8.  
  9.  
  10.  
  11. :LOOP
  12. Start "" "%PPATH%"
  13. ping 192.0.2.0 -n 1 -w %SLEEP_MSEC% > nul
  14. taskkill /F /IM %RUNFILE%
  15. GoTo:LOOP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement