@echo off
setlocal enabledelayedexpansion

set "input_file=c:\MAMP\htdocs\bidda\fees\verify_bank_transactions.php"
set "temp_file=c:\MAMP\htdocs\bidda\fees\verify_bank_transactions_temp.php"

set line_num=0

for /f "tokens=*" %%a in ('type "%input_file%"') do (
    set /a line_num+=1
    
    rem Skip lines 269-329 (the duplicate section)
    if !line_num! LSS 269 (
        echo %%a>>"%temp_file%"
    ) else if !line_num! GTR 329 (
        echo %%a>>"%temp_file%"
    )
)

move /y "%temp_file%" "%input_file%"

echo Duplicate section removed successfully!
pause