Advertisement
load-net

win11activate

Sep 26th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. @echo off
  2. set process=wscript.exe
  3. slmgr/ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
  4. goto checker
  5. :check
  6. cls
  7. echo Process %process% is still running...
  8. :checker
  9. tasklist /FI "IMAGENAME eq %process%" /NH | findstr /i "%process%">nul
  10. if %errorLevel% == 0 goto :check
  11. rem процесс был завершен, можно запускать следующий файл
  12. set process2=wscript.exe
  13. slmgr /skms kms.digiboy.ir
  14. goto checker
  15. :check
  16. cls
  17. echo Process %process2% is still running...
  18. :checker
  19. tasklist /FI "IMAGENAME eq %process2%" /NH | findstr /i "%process2%">nul
  20. if %errorLevel% == 0 goto :check
  21. rem процесс был завершен, можно запускать следующий файл
  22. slmgr /ato
  23. pause
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement