Is it nothing like getting the up directory short name?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
tinfanide
Posts: 117
Joined: 05 Sep 2011 09:15

Is it nothing like getting the up directory short name?

#1 Post by tinfanide » 14 Nov 2011 07:18

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

Post Reply