Page 1 of 1

Is it nothing like getting the up directory short name?

Posted: 14 Nov 2011 07:18
by tinfanide
For example,

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".