Execfile help!
Blitz3D Forums/Blitz3D Programming/Execfile help!
| ||
I've been unable to send commandline arguments to any app via Blitz3d's ExecFile "" command... I wanted to send a filename via the commandline to my conversion utilities... ie: ExecFile 'convertfile.exe myfile.3ds' But alas, it seems blitz3d dosent send the arguments?... Any advice or a workaround tip will be appreciated! :) |
| ||
PerhapsExecFile chr$(34)+"convertfile.exe myfile.3ds"+chr$(34) ; or ExecFile "convertfile.exe "+chr$(34)+"myfile.3ds"+chr$(34)will work? Edit: I have no problem with sending commandline parameters, try this: ; Compile and save as untitled.exe Print CommandLine$() WaitKey() End ; Save in the same directory as the untitled.exe, and run from the IDE ExecFile "untitled.exe hello!" End |
| ||
Whoa, could this be OS releated?... what OS you on Fredborg? Thanks for these tips |
| ||
Win2000, and yes it can be os related. I think older os'es require double quotes around that kind of thing... |
| ||
This worked for me! ExecFile Chr(34)+"untitled.exe"+Chr(34)+" hello!" on xp/pro ... lol go figure. Thanks for your time Fredborg. |
| ||
problem with that, is that if I want to launch another blitz3D exe, the old exe lost the focus when I launch, and even with an "end" command after execfile, the old windows stays just there, waiting for a mouse*keyboard input. any way to solve this ? |