Is it nothing like getting the up directory short name?
Posted: 14 Nov 2011 07:18
For example,
C:\test\batch\batch.bat
In batch.bat
But it returns the whole path which is unwanted.
I only wanna get "batch".
C:\test\batch\batch.bat
In batch.bat
Code: Select all
ECHO %~p0
PAUSE
But it returns the whole path which is unwanted.
I only wanna get "batch".