commandline file opening

BlitzPlus Forums/BlitzPlus Programming/commandline file opening

code(Posted 2004) [#1]
I have this proggy that i want to open certain file types when clicked on and i have tried using the commandline$() function. This does work however when i try to open the file i get and invalid stream error. How can i do this?


DjBigWorm(Posted 2004) [#2]
Hi code,

I had the same problem took me forever to figure out what was going on. When windows uses the commandline$ it also sends quates at the beginning and at the end of the commandline$(). I have to knock the quotes off and then try to load the file:0)

That is all I know, that might be the wrong way to do it, but it works. I also noticed that sometimes the commandline$ sent more then just one quate on each end some times 1 quate on the left and two on the right for no reason. Might be a blitz plus bug???

Anyhow that is all. Hope that helps


Perturbatio(Posted 2004) [#3]
ignore me


code(Posted 2004) [#4]
I have tried to use replace to replace them all wiht "" but It still doesn't work :(