Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set process=wscript.exe
- slmgr/ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
- goto checker
- :check
- cls
- echo Process %process% is still running...
- :checker
- tasklist /FI "IMAGENAME eq %process%" /NH | findstr /i "%process%">nul
- if %errorLevel% == 0 goto :check
- rem процесс был завершен, можно запускать следующий файл
- set process2=wscript.exe
- slmgr /skms kms.digiboy.ir
- goto checker
- :check
- cls
- echo Process %process2% is still running...
- :checker
- tasklist /FI "IMAGENAME eq %process2%" /NH | findstr /i "%process2%">nul
- if %errorLevel% == 0 goto :check
- rem процесс был завершен, можно запускать следующий файл
- slmgr /ato
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement