I just tried this:
And it works, FIletype returns 1. I tried it with a bak file that was in the same folder as the exe, on C:. And you're right, the path is a long filenames path. THe msdos thing happens only on fat32 systems.
Probably you shouldn't use Trim?
file$= CommandLine$() file$=Replace$(file$,Chr$(34),"") Print file$ Print FileType(file$) WaitKey() End
And it works, FIletype returns 1. I tried it with a bak file that was in the same folder as the exe, on C:. And you're right, the path is a long filenames path. THe msdos thing happens only on fat32 systems.
Probably you shouldn't use Trim?