CommandLine() bad for opening files...

Blitz3D Forums/Blitz3D Programming/CommandLine() bad for opening files...

I just tried this:

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?