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?
fsutil 8dot3name set 1Regards,
André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10