CommandLine() bad for opening files...

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

hi!

file$ = CommandLine()
file$ = Replace(file$, Chr(34), "")
file$ = Trim(file$)

when i try to open a file to the path of file$, i always get a MAV.

the commandline includes the whole path including the drive D:\ and the filename. i replaced the "" and trimmed it. thats all i can do and it still doesnt work.
important is, that CurrentDir() = "C:\Documents and settings\......." when i add a commandline. when i don't, the currentdir is usualy the dir of the executable...

what am i doing wrong here?
thx for upcomming answers:)