:: 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
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!