In a DOS window, how can I get the full DOS name/short name of the directory I am in?
For example, if I am in the directory C:Program FilesJavajdk1.6.0_22
, I want to display it's short name C:PROGRA~1JavaJDK16~1.0_2
.
I know running dir /x
will give me the short names of files/directories in the current directory but I haven't been able to find a way to display the full path of the current directory in short name format. I'm having to work my way through the path from the root, directory by directory, running dir /x
in each.
I'm sure there is an easier way to do this?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…