:: File: numberFormatter.cmd
@ECHO off
:: go the run dir
cd %~dp0
:: this is the dir containing the batch file
set MyDir=%CD%
for %%A in (%0) do set MyDriveLetter=%%~dA
for %%A in (%0) do set MyPath=%%~pA
for %%A in (%0) do set MyName=%%~nA
for %%A in (%0) do set MyExtension=%%~xA
:: ECHO MYNAME IS %0
:: ECHO MyDriveLetter is %MyDriveLetter%
:: ECHO MyPath is %MyPath%
:: ECHO MyName is %MyName%
:: ECHO MyExtension is %MyExtension%
:: the perl script is the same as the file name + the pl extension
set PerlScript=%MyDriveLetter%\%MyPath%\%MyName%.pl
:: Action !!!
perl %PerlScript% %1 %2 %3 %4 %5 %6 %7 %8 %9
:: Purpose:
:: To start a perl script having the <<BatchName>>.pl and pass the
:: 9 command line parameters
:: VersionHistory
:: 1.0.0 --- ysg --- Initial version