Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title LocationCrypto.bat
- title LocationCrypto.bat - Inizialiting...
- echo Inizializzazione...
- prompt
- if not EXIST "Location list.txt" (
- color 0c
- echo.
- echo An unexpected error has occurred while starting up:
- echo.
- echo The text file named "Location list.txt" was missed or corrupted.
- echo.
- echo.
- echo To resolve the problem, please, create a new file txt and rename it: "Location list.txt".
- echo After you do this, restart this program.
- timeout 2 > nul /NOBREAK
- echo.
- echo Press any key to close this window
- pause > nul
- exit
- )
- echo Inizializzazione: Complete successfully
- title LocationCrypto.bat - Inizialiting... Complete
- timeout 1 > nul /NOBREAK
- :Coordinates
- echo.
- title LocationCrypto.bat - Inserit the grades
- set /p "SG=Inserit here the grades of the cripted coordinate: "
- title LocationCrypto.bat - Inserit the minute
- set /p "SM=Inserit here the minute of the cripted coordinate: "
- title LocationCrypto.bat - Inserit the max interval supported
- set /p "SI=Inserit the max interval supported (Read "Read me.txt" for help) "
- title LocationCrypto.bat - Strarting calcounling...
- echo.
- echo Strarting calcounling...
- set Gcount=0
- set Mcount=0
- set Goperator=+
- set Moperator=+
- :Calc
- if %Mcount%==%SI% (
- set Gcount=%Gcount%+1
- set Mcount=0
- if %Moperator%==+ set Moperator=-
- if %Moperator%==- set Moperator=+
- )
- if %Gcount%==%SI% (
- set Gcount=0
- if %Goperator%==+ set Moperator=-
- if %Goperator%==- goto :finish
- )
- set DG=%SG%%Goperator%%Gcount%
- set DM=%SM%%Moperator%%Mcount%
- set /a DC=(%DG%*100)+%DM%
- title LocationCrypto.bat - Testing %DC%
- for /f %%c in ('FIND "%DC%" /C /I ^< "Location list.txt"') do set FDC=%%c
- if %FDC% GEQ 1 echo Founded: %DC%
- set /a Mcount=%Mcount%+1
- goto :Calc
- :finish
- timeout 1 > nul /NOBREAK
- title LocationCrypto.bat - Calcouling complete!
- echo.
- echo The calcoulation has been complete succesfully!
- echo.
- timeout 3 > nul /NOBREAK
- echo Press any key to continue...
- pause > nul
- goto :Coordinates
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement