Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal
- call :FindReplace "</body>" "<hr /><a href=chapter_002.html>Next</a></body>" chapter_001.html
- call :FindReplace "<body>" "<body><a href=chapter_001.html>Previous</a><hr />" chapter_002.html
- call :FindReplace "</body>" "<hr /><a href=chapter_003.html>Next</a></body>" chapter_002.html
- call :FindReplace "<body>" "<body><a href=chapter_002.html>Previous</a><hr />" chapter_003.html
- call :FindReplace "</body>" "<hr /><a href=chapter_004.html>Next</a></body>" chapter_003.html
- call :FindReplace "<body>" "<body><a href=chapter_003.html>Previous</a><hr />" chapter_004.html
- call :FindReplace "</body>" "<hr /><a href=chapter_005.html>Next</a></body>" chapter_004.html
- call :FindReplace "<body>" "<body><a href=chapter_004.html>Previous</a><hr />" chapter_005.html
- call :FindReplace "</body>" "<hr /><a href=chapter_006.html>Next</a></body>" chapter_005.html
- call :FindReplace "<body>" "<body><a href=chapter_005.html>Previous</a><hr />" chapter_006.html
- call :FindReplace "</body>" "<hr /><a href=chapter_007.html>Next</a></body>" chapter_006.html
- call :FindReplace "<body>" "<body><a href=chapter_006.html>Previous</a><hr />" chapter_007.html
- call :FindReplace "</body>" "<hr /><a href=chapter_008.html>Next</a></body>" chapter_007.html
- call :FindReplace "<body>" "<body><a href=chapter_007.html>Previous</a><hr />" chapter_008.html
- call :FindReplace "</body>" "<hr /><a href=chapter_009.html>Next</a></body>" chapter_008.html
- call :FindReplace "<body>" "<body><a href=chapter_008.html>Previous</a><hr />" chapter_009.html
- call :FindReplace "</body>" "<hr /><a href=chapter_010.html>Next</a></body>" chapter_009.html
- call :FindReplace "<body>" "<body><a href=chapter_09.html>Previous</a><hr />" chapter_010.html
- call :FindReplace "</body>" "<hr /><a href=chapter_011.html>Next</a></body>" chapter_010.html
- call :FindReplace "<body>" "<body><a href=chapter_010.html>Previous</a><hr />" chapter_011.html
- call :FindReplace "</body>" "<hr /><a href=chapter_012.html>Next</a></body>" chapter_011.html
- call :FindReplace "<body>" "<body><a href=chapter_011.html>Previous</a><hr />" chapter_012.html
- call :FindReplace "</body>" "<hr /><a href=chapter_013.html>Next</a></body>" chapter_012.html
- call :FindReplace "<body>" "<body><a href=chapter_012.html>Previous</a><hr />" chapter_013.html
- call :FindReplace "</body>" "<hr /><a href=chapter_014.html>Next</a></body>" chapter_013.html
- call :FindReplace "<body>" "<body><a href=chapter_013.html>Previous</a><hr />" chapter_014.html
- call :FindReplace "</body>" "<hr /><a href=chapter_015.html>Next</a></body>" chapter_014.html
- call :FindReplace "<body>" "<body><a href=chapter_014.html>Previous</a><hr />" chapter_015.html
- call :FindReplace "</body>" "<hr /><a href=chapter_016.html>Next</a></body>" chapter_015.html
- call :FindReplace "<body>" "<body><a href=chapter_015.html>Previous</a><hr />" chapter_016.html
- call :FindReplace "</body>" "<hr /><a href=chapter_017.html>Next</a></body>" chapter_016.html
- call :FindReplace "<body>" "<body><a href=chapter_016.html>Previous</a><hr />" chapter_017.html
- call :FindReplace "</body>" "<hr /><a href=chapter_018.html>Next</a></body>" chapter_017.html
- call :FindReplace "<body>" "<body><a href=chapter_017.html>Previous</a><hr />" chapter_018.html
- call :FindReplace "</body>" "<hr /><a href=chapter_019.html>Next</a></body>" chapter_018.html
- call :FindReplace "<body>" "<body><a href=chapter_018.html>Previous</a><hr />" chapter_019.html
- call :FindReplace "</body>" "<hr /><a href=chapter_020.html>Next</a></body>" chapter_019.html
- call :FindReplace "<body>" "<body><a href=chapter_019.html>Previous</a><hr />" chapter_020.html
- call :FindReplace "</body>" "<hr /><a href=chapter_021.html>Next</a></body>" chapter_020.html
- call :FindReplace "<body>" "<body><a href=chapter_020.html>Previous</a><hr />" chapter_021.html
- call :FindReplace "</body>" "<hr /><a href=chapter_022.html>Next</a></body>" chapter_021.html
- call :FindReplace "<body>" "<body><a href=chapter_021.html>Previous</a><hr />" chapter_022.html
- call :FindReplace "</body>" "<hr /><a href=chapter_023.html>Next</a></body>" chapter_022.html
- call :FindReplace "<body>" "<body><a href=chapter_022.html>Previous</a><hr />" chapter_023.html
- call :FindReplace "</body>" "<hr /><a href=chapter_024.html>Next</a></body>" chapter_023.html
- call :FindReplace "<body>" "<body><a href=chapter_023.html>Previous</a><hr />" chapter_024.html
- call :FindReplace "</body>" "<hr /><a href=chapter_025.html>Next</a></body>" chapter_024.html
- call :FindReplace "<body>" "<body><a href=chapter_024.html>Previous</a><hr />" chapter_025.html
- call :FindReplace "</body>" "<hr /><a href=chapter_026.html>Next</a></body>" chapter_025.html
- call :FindReplace "<body>" "<body><a href=chapter_025.html>Previous</a><hr />" chapter_026.html
- call :FindReplace "</body>" "<hr /><a href=chapter_027.html>Next</a></body>" chapter_026.html
- call :FindReplace "<body>" "<body><a href=chapter_026.html>Previous</a><hr />" chapter_027.html
- call :FindReplace "</body>" "<hr /><a href=chapter_028.html>Next</a></body>" chapter_027.html
- call :FindReplace "<body>" "<body><a href=chapter_027.html>Previous</a><hr />" chapter_028.html
- call :FindReplace "</body>" "<hr /><a href=chapter_029.html>Next</a></body>" chapter_028.html
- call :FindReplace "<body>" "<body><a href=chapter_028.html>Previous</a><hr />" chapter_029.html
- call :FindReplace "</body>" "<hr /><a href=chapter_030.html>Next</a></body>" chapter_029.html
- call :FindReplace "<body>" "<body><a href=chapter_029.html>Previous</a><hr />" chapter_030.html
- call :FindReplace "</body>" "<hr /><a href=chapter_031.html>Next</a></body>" chapter_030.html
- call :FindReplace "<body>" "<body><a href=chapter_030.html>Previous</a><hr />" chapter_031.html
- call :FindReplace "</body>" "<hr /><a href=chapter_032.html>Next</a></body>" chapter_031.html
- call :FindReplace "<body>" "<body><a href=chapter_031.html>Previous</a><hr />" chapter_032.html
- call :FindReplace "</body>" "<hr /><a href=chapter_033.html>Next</a></body>" chapter_032.html
- call :FindReplace "<body>" "<body><a href=chapter_032.html>Previous</a><hr />" chapter_033.html
- call :FindReplace "</body>" "<hr /><a href=chapter_034.html>Next</a></body>" chapter_033.html
- call :FindReplace "<body>" "<body><a href=chapter_033.html>Previous</a><hr />" chapter_034.html
- call :FindReplace "</body>" "<hr /><a href=chapter_035.html>Next</a></body>" chapter_034.html
- call :FindReplace "<body>" "<body><a href=chapter_034.html>Previous</a><hr />" chapter_035.html
- call :FindReplace "</body>" "<hr /><a href=chapter_036.html>Next</a></body>" chapter_035.html
- call :FindReplace "<body>" "<body><a href=chapter_035.html>Previous</a><hr />" chapter_036.html
- call :FindReplace "</body>" "<hr /><a href=chapter_037.html>Next</a></body>" chapter_036.html
- call :FindReplace "<body>" "<body><a href=chapter_036.html>Previous</a><hr />" chapter_037.html
- call :FindReplace "</body>" "<hr /><a href=chapter_038.html>Next</a></body>" chapter_037.html
- call :FindReplace "<body>" "<body><a href=chapter_037.html>Previous</a><hr />" chapter_038.html
- call :FindReplace "</body>" "<hr /><a href=chapter_039.html>Next</a></body>" chapter_038.html
- call :FindReplace "<body>" "<body><a href=chapter_038.html>Previous</a><hr />" chapter_039.html
- call :FindReplace "</body>" "<hr /><a href=chapter_040.html>Next</a></body>" chapter_039.html
- call :FindReplace "<body>" "<body><a href=chapter_039.html>Previous</a><hr />" chapter_040.html
- call :FindReplace "</body>" "<hr /><a href=chapter_041.html>Next</a></body>" chapter_040.html
- call :FindReplace "<body>" "<body><a href=chapter_040.html>Previous</a><hr />" chapter_041.html
- call :FindReplace "</body>" "<hr /><a href=chapter_042.html>Next</a></body>" chapter_041.html
- call :FindReplace "<body>" "<body><a href=chapter_041.html>Previous</a><hr />" chapter_042.html
- call :FindReplace "</body>" "<hr /><a href=chapter_043.html>Next</a></body>" chapter_042.html
- call :FindReplace "<body>" "<body><a href=chapter_042.html>Previous</a><hr />" chapter_043.html
- call :FindReplace "</body>" "<hr /><a href=chapter_044.html>Next</a></body>" chapter_043.html
- call :FindReplace "<body>" "<body><a href=chapter_043.html>Previous</a><hr />" chapter_044.html
- call :FindReplace "</body>" "<hr /><a href=chapter_045.html>Next</a></body>" chapter_044.html
- call :FindReplace "<body>" "<body><a href=chapter_044.html>Previous</a><hr />" chapter_045.html
- call :FindReplace "</body>" "<hr /><a href=chapter_046.html>Next</a></body>" chapter_045.html
- call :FindReplace "<body>" "<body><a href=chapter_045.html>Previous</a><hr />" chapter_046.html
- call :FindReplace "</body>" "<hr /><a href=chapter_047.html>Next</a></body>" chapter_046.html
- call :FindReplace "<body>" "<body><a href=chapter_046.html>Previous</a><hr />" chapter_047.html
- call :FindReplace "</body>" "<hr /><a href=chapter_048.html>Next</a></body>" chapter_047.html
- call :FindReplace "<body>" "<body><a href=chapter_047.html>Previous</a><hr />" chapter_048.html
- call :FindReplace "</body>" "<hr /><a href=chapter_049.html>Next</a></body>" chapter_048.html
- call :FindReplace "<body>" "<body><a href=chapter_048.html>Previous</a><hr />" chapter_049.html
- call :FindReplace "</body>" "<hr /><a href=chapter_050.html>Next</a></body>" chapter_049.html
- call :FindReplace "<body>" "<body><a href=chapter_049.html>Previous</a><hr />" chapter_050.html
- call :FindReplace "</body>" "<hr /><a href=chapter_051.html>Next</a></body>" chapter_050.html
- call :FindReplace "<body>" "<body><a href=chapter_050.html>Previous</a><hr />" chapter_051.html
- call :FindReplace "</body>" "<hr /><a href=chapter_052.html>Next</a></body>" chapter_051.html
- call :FindReplace "<body>" "<body><a href=chapter_051.html>Previous</a><hr />" chapter_052.html
- call :FindReplace "</body>" "<hr /><a href=chapter_053.html>Next</a></body>" chapter_052.html
- call :FindReplace "<body>" "<body><a href=chapter_052.html>Previous</a><hr />" chapter_053.html
- call :FindReplace "</body>" "<hr /><a href=chapter_054.html>Next</a></body>" chapter_053.html
- call :FindReplace "<body>" "<body><a href=chapter_053.html>Previous</a><hr />" chapter_054.html
- call :FindReplace "</body>" "<hr /><a href=chapter_055.html>Next</a></body>" chapter_054.html
- call :FindReplace "<body>" "<body><a href=chapter_054.html>Previous</a><hr />" chapter_055.html
- call :FindReplace "</body>" "<hr /><a href=chapter_056.html>Next</a></body>" chapter_055.html
- call :FindReplace "<body>" "<body><a href=chapter_055.html>Previous</a><hr />" chapter_056.html
- call :FindReplace "</body>" "<hr /><a href=chapter_057.html>Next</a></body>" chapter_056.html
- call :FindReplace "<body>" "<body><a href=chapter_056.html>Previous</a><hr />" chapter_057.html
- call :FindReplace "</body>" "<hr /><a href=chapter_058.html>Next</a></body>" chapter_057.html
- call :FindReplace "<body>" "<body><a href=chapter_057.html>Previous</a><hr />" chapter_058.html
- call :FindReplace "</body>" "<hr /><a href=chapter_059.html>Next</a></body>" chapter_058.html
- call :FindReplace "<body>" "<body><a href=chapter_058.html>Previous</a><hr />" chapter_059.html
- call :FindReplace "</body>" "<hr /><a href=chapter_060.html>Next</a></body>" chapter_059.html
- call :FindReplace "<body>" "<body><a href=chapter_059.html>Previous</a><hr />" chapter_060.html
- call :FindReplace "</body>" "<hr /><a href=chapter_061.html>Next</a></body>" chapter_060.html
- call :FindReplace "<body>" "<body><a href=chapter_060.html>Previous</a><hr />" chapter_061.html
- call :FindReplace "</body>" "<hr /><a href=chapter_062.html>Next</a></body>" chapter_061.html
- call :FindReplace "<body>" "<body><a href=chapter_061.html>Previous</a><hr />" chapter_062.html
- call :FindReplace "</body>" "<hr /><a href=chapter_063.html>Next</a></body>" chapter_062.html
- call :FindReplace "<body>" "<body><a href=chapter_062.html>Previous</a><hr />" chapter_063.html
- call :FindReplace "</body>" "<hr /><a href=chapter_064.html>Next</a></body>" chapter_063.html
- call :FindReplace "<body>" "<body><a href=chapter_063.html>Previous</a><hr />" chapter_064.html
- call :FindReplace "</body>" "<hr /><a href=chapter_065.html>Next</a></body>" chapter_064.html
- call :FindReplace "<body>" "<body><a href=chapter_064.html>Previous</a><hr />" chapter_065.html
- call :FindReplace "</body>" "<hr /><a href=chapter_066.html>Next</a></body>" chapter_065.html
- call :FindReplace "<body>" "<body><a href=chapter_065.html>Previous</a><hr />" chapter_066.html
- call :FindReplace "</body>" "<hr /><a href=chapter_067.html>Next</a></body>" chapter_066.html
- call :FindReplace "<body>" "<body><a href=chapter_066.html>Previous</a><hr />" chapter_067.html
- call :FindReplace "</body>" "<hr /><a href=chapter_068.html>Next</a></body>" chapter_067.html
- call :FindReplace "<body>" "<body><a href=chapter_067.html>Previous</a><hr />" chapter_068.html
- call :FindReplace "</body>" "<hr /><a href=chapter_069.html>Next</a></body>" chapter_068.html
- call :FindReplace "<body>" "<body><a href=chapter_068.html>Previous</a><hr />" chapter_069.html
- call :FindReplace "</body>" "<hr /><a href=chapter_070.html>Next</a></body>" chapter_069.html
- call :FindReplace "<body>" "<body><a href=chapter_069.html>Previous</a><hr />" chapter_070.html
- call :FindReplace "</body>" "<hr /><a href=chapter_071.html>Next</a></body>" chapter_070.html
- call :FindReplace "<body>" "<body><a href=chapter_070.html>Previous</a><hr />" chapter_071.html
- call :FindReplace "</body>" "<hr /><a href=chapter_072.html>Next</a></body>" chapter_071.html
- call :FindReplace "<body>" "<body><a href=chapter_071.html>Previous</a><hr />" chapter_072.html
- exit /b
- :FindReplace <findstr> <replstr> <file>
- set tmp="%temp%\tmp.txt"
- If not exist %temp%\_.vbs call :MakeReplace
- for /f "tokens=*" %%a in ('dir "%3" /s /b /a-d /on') do (
- for /f "usebackq" %%b in (`Findstr /mic:"%~1" "%%a"`) do (
- echo(&Echo Replacing "%~1" with "%~2" in file %%~nxa
- <%%a cscript //nologo %temp%\_.vbs "%~1" "%~2">%tmp%
- if exist %tmp% move /Y %tmp% "%%~dpnxa">nul
- )
- )
- del %temp%\_.vbs
- exit /b
- :MakeReplace
- >%temp%\_.vbs echo with Wscript
- >>%temp%\_.vbs echo set args=.arguments
- >>%temp%\_.vbs echo .StdOut.Write _
- >>%temp%\_.vbs echo Replace(.StdIn.ReadAll,args(0),args(1),1,-1,1)
- >>%temp%\_.vbs echo end with
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement