I am trying to figure out what the internal behavior is when converting a long filename that is only spaces and an extension. This might be an invalid 8.3 name to begin with, but windows does some things behind the scenes to convert it to a usable short filename.
command prompt steps to replicate the condition:
1. rename "abc.txt" " .txt"
2. dir /x
3. " .txt" short file entry is B6A0~1.TXT
In short, what is the algorithm for converting the long filename from step 1 (" .txt") to the 8.3 filename in step 3 ("B6A0~1.TXT")