I am trying to find the short name of a path on Windows.
For some reason the following command only works when run on the C drive
for /d %I in (*) do @ec
Check if your 8.3 notation is turnred on for the other drives: http://technet.microsoft.com/en-us/library/ff621566.aspx