How To Get Short Directory Name In Windows (8.3 File/Directory Name Format)
Below is the screen shot if you give DIR command:
To get the short names for files and directories in 8.3 name format in windows give Dir command with X parameter e.g. Dir /x as shown below:
Like for directory Program Files (x86) the short name is Progra~2.