1@echo off 2 3if "%1" == "" goto help 4if /I "%1" == "0" goto ok 5if /I "%1" == "4" goto ok 6 7echo Illegal argument. Do nothing and exit. 8goto end 9 10:help 11 echo usage: setcountrycode [0-4] 12 echo Sets the pcode on disc. 13 goto end 14 15:ok 16 17 for %%i in (%REVOLUTION_SDK_ROOT%\x86\bin\rvl*.bin) do ( 18 %REVOLUTION_SDK_ROOT%\x86\bin\rvlbinconv -f %%i -pc 0x%1 19 if errorlevel 1 goto failed 20 ) 21 22 echo Successfully done. Set the pcode for disc application to %1. 23 goto mesg 24 25:failed 26 echo Failed to set the pcode for disc application. 27 goto end 28 29:mesg 30echo ****************************************************************************** 31echo * If you make master data, you must execute loadrun/odrun before you do so!! * 32echo ****************************************************************************** 33 34:end 35