Advertisement
IcarusLives

:creatorProtection

Aug 1st, 2017
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.65 KB | None | 0 0
  1. @echo off & setlocal enableDelayedExpansion
  2. title Anti-Skidware& mode 60,4
  3.  
  4. :::Written by IcarusLives
  5.  
  6. call :creatorProtection "Written by IcarusLives"
  7.  
  8. echo       If you can read this, you have not violated cp.
  9. echo.
  10. if exist %temp%\%~n0_cP.txt echo                          Activated
  11.  
  12. pause > nul & exit
  13.  
  14. :creatorProtection
  15.     for /f "tokens=1,2 delims=:" %%a in ('findstr /n ":::" "%~F0"') do (
  16.         if "%%b" equ %1 set /a "i+=1", "x+=(i+%%a+%~z0)")
  17.     if not exist "%temp%\%~n0_cP.txt" echo=%x%>"%temp%\%~n0_cP.txt"
  18.     if exist "%temp%\%~n0_cP.txt" <%temp%\%~n0_cP.txt set /p "g="
  19.     if "%x%" neq "%g%" start /b "" cmd /c del "%~f0" & exit
  20. goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement