Sample Batch File
This is a batch file I used to run DOS commands on a GE MarkV turbine control. It is a sample of menu options and commands.
@echo off
REM *****************************************************
REM *****************************************************
title Download EEPROM data to cores
REM *****************************************************
REM ************ Unit Select **************************
cls
echo Gas Turbine or Steam?
echo Type T or S, press e at any time to Exit
set /p T#=
If '%T#%'=='e' goto end
cls
echo What Unit are you at?
echo Type 1 2 3 4
echo Use 1 or 2 for Steam
set /p U#=
If '%U#%'=='e' goto end
REM *****************************************************
REM ************* Constant Check *******************
echo Would yo like to run Constchk?
echo Type y or n, then press enter
Set /p Constchk=
If '%Constchk%'=='y' goto Check
If '%Constchk%'=='e' goto End
goto Mk5Make
:Check
E:
cd site\unit%U#%
constchk %T#%
echo Press any Key after ConstChk is completed successfully
pause>nul
REM **************************************************
REM ************* Mk5Make stuff *****************
:Mk5Make
echo Would you like to run MK5MAKE?
echo Type y or n, then press enter
echo Not working for Steam turbines
Set /p MK5MAKE=
If '%MK5MAKE%'=='y' goto MakeY
If '%MK5MAKE%'=='e' goto end
goto EEPROM
:MakeY
E:
cd site\unit%U#%
call "MK5MAKE.bat"
echo Press any Key after MK5MAKE is completed successfully
pause>nul
REM *****************************************************
REM ************ EEPROM Stuff **************************
:EEPROM
cls
echo Do you want run EEPROM down?
Set /p Prom=
IF '%Prom%'=='e' goto End
IF '%Prom%'=='y' goto EEPROMY
goto End
:EEPROMY
echo Do you want to do the IOConfig files or User files?
echo Type i or u (i is good after calibrations)
Set /p File=
If '%File%'=='i' goto FileI
If '%File%'=='u' goto FileU
If '%File%'=='e' goto End
goto Doc
cls
:FileI
echo Downloading Core R
EEPROM Down %T#%%U#% R IOConfg
echo Press any key for next core
pause>nul
echo Downloading Core S
EEPROM Down %T#%%U#% S IOConfg
echo Press any key for next core
pause>nul
echo Downloading Core T
EEPROM Down %T#%%U#% T IOConfg
echo Ready to reboot the Cores
pause>nul
goto end
:FileU
echo Downloading Core R
EEPROM Down %T#%%U#% R user
echo Press any key for next core
pause>nul
echo Downloading Core S
EEPROM Down %T#%%U#% S user
echo Press any key for next core
pause>nul
echo Downloading Core T
EEPROM Down %T#%%U#% T user
echo Ready to reboot the Cores
pause>nul
:end
echo Press any key to exit
pause>nul
@echo on
BACK 2 CONTENTS
|