I suspect the cause of the problem is in Windows OS which handles short-long file names on some way which the function DIRECTORY() interprets wrongly, while following DOS OS.
Did you try to disable 8.3 file name creation?
- Code: Select all Expand view
- fsutil 8dot3name set 1