How to get just the name of a folder without path from full folder path in 8.3 format?
How can I get the just the name of the target folder under Windows command line?
I have folder strings like these:
C:\Users\Fred\DOCUME~1
C:\Users\Fred\Music
C:\Users\Fred\DOWNLO~1\FREEDO~1
How can I get just the target folder name using a batch script to get:
FREEDO~1
Music
DOCUME~1