commandline$ different results on different wiindows versrions

Blitz3D Forums/Blitz3D Beginners Area/commandline$ different results on different wiindows versrions

koekjesbaby(Posted 2003) [#1]
hi,

i was trying to make one of those nifty programs where you can drag some files on the shortcut (or actual program) to lauch the program with those files. that is not too diffucult, but when i made the program en tried it on my firend computer it failed. the reason it failed was because my computer quotes the files that you drag onto a shortcut so the commandline becomes like this:
"c:\pictures\pic1.png" "c:\pictures\pic2.png" "c:\pictures\pic3.png"
while his computer gave this commandline:
c:\pictures\pic1.png c:\pictures\pic2.png c:\pictures\pic3.png

we both use winxp home, only his os language is dutch while mine is english(uk), but that shouldn't make a difference right? that would be silly.


Sunteam Software(Posted 2003) [#2]
Can you really ever know when it comes to MS stuff?

I'd say put in a routine to detect and strip out any quote marks just to be sure.


DarkEagle(Posted 2003) [#3]
c$ = commandline()
c$ = replace(c$,char(34),"")



jfk EO-11110(Posted 2003) [#4]
Good to know, thanks.


skidracer(Posted 2003) [#5]
You need the quotes when parsing files that include spaces so I would test with that case also.


rdodson41(Posted 2003) [#6]
Can you really ever know when it comes to MS stuff?


Of course. Pure Microsoft trash! =)