Possible Duplicate:
Get current folder name by a DOS command?
In my batch file, I have,
SET currentFolder=%CD%
echo "%currentFolder%"
Prints the whole directory path.
C:\www\scritps\
I need to get scripts alone
In my batch file, I have,
Prints the whole directory path.
I need to get |
|||
|
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
|
There really isn't an easy way to do it. This works in a .bat file:
|
|||||||
|