Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
W1BTR authored Jul 8, 2024
1 parent 9990f26 commit 1102843
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Tailb.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1102843

Please sign in to comment.