title: Get DOS path instead of Windows path
body: <p>In a DOS window, how can I get the full DOS name/short name of the directory I am in?</p>
  
  <p>For example, if I am in the directory <code>C:\Program Files\Java\jdk1.6.0_22</code>, I want to display it's short name <code>C:\PROGRA~1\Java\JDK16~1.0_2</code>.</p>
  
  <p>I know running <code>dir /x</code> 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 <code>dir /x</code> in each.</p>
  
  <p>I'm sure there is an easier way to do this?</p>