Jayzone,
Very cool. So far, it looks quite accurate as well. Thanks for the new toy!
I modified your batch files a little bit to allow prompted values for the parameters you pass to the .exe files and allow the scout.bat file to be run for multiple players without restarting the batch file. The modifications include some very basic error testing. I'll include the code here.
Translator.bat:
Code:
@ECHO OFF
:CSV_path
set path=
set /p path=Enter directory containing csv files:
if '%path%'=='' goto path_error
goto Scale
:path_error
ECHO You must enter a directory. Please enter a value.
ECHO.
goto CSV_path
:Scale
set scale=
set /p scale=Enter ratings scale:
if '%scale%'=='' goto scale_error
goto end
:scale_error
ECHO The rating scale cannot be blank. Please enter a value.
ECHO.
goto Scale
:end
rating_translator.exe %path% %scale%
pause
Scout.bat:
Code:
@ECHO OFF
:Player_ID
set pid=
set /p pid=Enter Player ID:
if '%pid%'=='' goto pid_error
goto PA
:pid_error
ECHO Player ID cannot be blank. Please enter a value.
ECHO.
goto Player_ID
:PA
set pa=
set /p pa=Enter estimated PA:
if '%pa%'=='' goto pa_error
goto run
:pa_error
ECHO PA cannot be blank. Please enter a value.
ECHO.
goto PA
:run
EPScout.exe %pid% %pa%
set rerun=
set /p rerun=Run again? (Y/N):
if not '%rerun%'=='' set rerun=%rerun:~0,1%
if '%rerun%'=='Y' goto Player_ID
if '%rerun%'=='y' goto Player_ID