From 1102843bd28b5456960661fe374cb3045fcb0b7f Mon Sep 17 00:00:00 2001 From: Lucas Elliott <164893442+W1BTR@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:07:18 -0400 Subject: [PATCH] Add files via upload --- Tailb.bat | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Tailb.bat diff --git a/Tailb.bat b/Tailb.bat new file mode 100644 index 0000000..eb08ab2 --- /dev/null +++ b/Tailb.bat @@ -0,0 +1,34 @@ +@echo off +if "%~1"=="" exit /b 1 +if not exist "%~1" exit /b 2 +if "%~1"=="clean" ( + del /f /q "%temp%\*.compare" + echo Cleaned up temporary compare files. + exit /b 0 +) +set file=%~1 +:finduid +set uid=%random%%random%%random%%random%%random%%random%%random% +if exist "%temp%\%uid%.compare" goto finduid +call :Display +copy /y "%file%" "%temp%\%uid%.compare" >nul 2>nul +:Monitor +comp /M "%file%" "%temp%\%uid%.compare" >nul 2>nul +if %errorlevel%==1 ( + call :Display + copy /y "%file%" "%temp%\%uid%.compare" >nul 2>nul + goto monitor +) +choice /c QR /t 2 /d R >nul +if %errorlevel%==1 ( + del /f /q "%temp%\%uid%.compare" + exit /b +) +goto monitor + + + +:Display +cls +type "%file%"" +exit /b \ No newline at end of file