Friday, July 22, 2011

Windows XP Batch: getting current batch file name

-- myBatchFile.bat

ECHO %0
ECHO %~n0
ECHO %~nx0
the result when I put in the console C:\test>myBatchFile.bat

No comments: