Catfish, how would we go about upgrading our current batch files to work with Win7-64?
Well,
I posted one for your Battle of Zarklaw scenario some time ago. I'll break it down. Comments are in green.
The usual screen display with menu:
@echo off
cls
echo.
echo Bitterfrost VI
echo.
echo This program will automatically load new game files.
echo Please choose from the options below:
echo.
echo 1. Load Skern Player Settings
echo 2. Load Heathen Player Settings
echo 3. Exit without Loading
echo.
Checks the Operating System. If it's NT-based, eg, 2000, 2003, XP, Vista, 7, the procedure will jump to the win7 label.
if "%OS%"=="Windows_NT" goto win7
Familiar Choice.com selection method – for Win9x systems (Does anyone actually still use these?):
choice /c:123 Enter your selection
if errorlevel 3 goto done
if errorlevel 2 goto Heathen
if errorlevel 1 goto Skern
New non-Choice.com selection method – for NT-based systems:
:win7
set /P choice=Type a number (1-3) and hit Enter:
Displays the text to the right of the = sign and waits for input. The input is assigned to the variable, choice. You can give the variable a different name if you like.
if %choice%==1 goto Skern
if %choice%==2 goto Heathen
if %choice%==3 goto done
If the choice variable matches any of the above values (in this case, 1, 2 or 3), the procedure will jump to the corresponding label. Variable is case-sensitive – see Red Front batch file for an example of what I'm talking about.
goto win7
If the choice variable doesn't match any of the above values, you'll be prompted for input again.
From here on, it's business as usual:
:Skern
echo.
echo Skern Settings
@echo off
copy Rules_Skern.txt Rules.txt
copy events\Events_Skern.txt Events.txt
goto done
:Heathen
echo.
echo Heathen Settings
@echo off
copy Rules_Heathen.txt Rules.txt
copy events\Events_Heathen.txt Events.txt
goto done
:done
You mentioned you had converted a bunch of older batch files for scenarios...
They're all in CFC's downloads section.