Last active
May 18, 2019 07:14
Revisions
-
Diskmaster revised this gist
May 18, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ set patchname=%realname%.patch rem And with the cut realname, add the .patch extension. rem echo DEBUG %filename% %realname% %patchname% rem Debugging statement, uncomment if you want to see it in action. echo Applying %patchname% to the unsubtitled video file. echo. rem xdelta3.exe -d %patchname% 2> NUL - original xdelta3 command. rem The one below adds -q (quiet), which omits the source part of the output. @@ -48,5 +48,5 @@ goto :end :end echo. rem Updated by Diskmaster / @TomeofElectrum for Over-Time - revision 3.1 rem src: https://gist.github.com/Diskmaster/fae4969a41fcc7240c3d950f90c87970 -
Diskmaster revised this gist
May 18, 2019 . 1 changed file with 9 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,12 +7,16 @@ set patchname=%realname%.patch rem And with the cut realname, add the .patch extension. rem echo DEBUG %filename% %realname% %patchname% rem Debugging statement, uncomment if you want to see it in action. echo Applying %patchname% to the unsubtitled video file, look for the name below when the tool completes. echo. rem xdelta3.exe -d %patchname% 2> NUL - original xdelta3 command. rem The one below adds -q (quiet), which omits the source part of the output. rem xdelta3, at the least the version I have omits only the output filename with this switchset. xdelta3.exe -q -d %patchname% if %ERRORLEVEL%==9009 goto missingxdelta if %ERRORLEVEL%==1 goto patchfailed echo. echo Patch appears successful. echo. ping -n 3 127.0.0.1>nul pause @@ -44,5 +48,5 @@ goto :end :end echo. rem Updated by Diskmaster / @TomeofElectrum for Over-Time - revision 3 rem src: https://gist.github.com/Diskmaster/fae4969a41fcc7240c3d950f90c87970 -
Diskmaster revised this gist
Apr 6, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -44,5 +44,5 @@ goto :end :end echo. rem pause - Why are we pausing twice? rem Updated by Diskmaster / @TomeofElectrum for Over-Time -
Diskmaster created this gist
Mar 25, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,48 @@ @echo off set filename=%~n0 rem %~n0 obtains the filename, without the .bat extension. set realname=%filename:~0,-6% rem This step cuts the .RUNME from the batch filename. set patchname=%realname%.patch rem And with the cut realname, add the .patch extension. rem echo DEBUG %filename% %realname% %patchname% rem Debugging statement, uncomment if you want to see it in action. echo Patching with %patchname% ... xdelta3.exe -d %patchname% 2> NUL if %ERRORLEVEL%==9009 goto missingxdelta if %ERRORLEVEL%==1 goto patchfailed echo. echo Done! echo. ping -n 3 127.0.0.1>nul pause goto :end :missingxdelta echo. echo Unable to find the xdelta patching utility anywhere in your PATH. echo Download a copy from http://xdelta.org and put it somewhere in your PATH, echo the folder you tend to put the raw and patch in is a good candidate. Another echo reasonable candidate is C:\Windows\system32\ echo. echo Your current PATH is: %PATH% echo. ping -n 3 127.0.0.1>nul pause goto :end :patchfailed echo. echo The xdelta patching utility was unable to apply the patch. Make sure the original, echo unedited raw file and the patch are all in the same folder as this script before echo attempting to run again. echo. ping -n 3 127.0.0.1>nul pause goto :end :end echo. pause rem Updated by Diskmaster / @TomeofElectrum for Over-Time