I don't know that this actually helps with the problem at hand, but to answer the question:
Once upon a time in DOS, file names were limited to eight characters (plus extension). This might have still been true in early versions of Windows. I don't know.
At some point long filenames with which we are all familiar today became allowed, but (probably for compatibility purposes) each file continued to have a short name in the background. Somelongname.txt would typically have a short name SOMEL~.txt.
I don't know to what extent these names still exist, but if in a command prompt I enter the command dir /x, I see them.