I'm trying to build a command-line-only application with BlitzPlus. The easy part is reading in and parsing the command line parameters. What I haven't figured out yet is how to print stuff to the command line window (i.e. output text). Here's what I'm doing:
1) Compile Blitz executable ("program.exe")
2) Run cmd.exe, cd to program folder
3) Run "program.exe /param1 /param2"
4) (In program.exe) read the command line parameters
5) (In program.exe) send output to cmd.exe "Program successfully completed, with params: ...etc"
So, as you can see, I just want it to be like every other command line tool -- no GUI, no other windows, etc. But...
I've tried "Print" -- it just opens another window and prints whatever.
I've tried "execfile("echo <message>")" -- it doesn't seem to do anything.
I don't notice any other ways in native blitz (not similar to these) to just print output to the console from which the program was executed.
Is there a way, or am I going to have to get creative with an external program or DLL?
1) Compile Blitz executable ("program.exe")
2) Run cmd.exe, cd to program folder
3) Run "program.exe /param1 /param2"
4) (In program.exe) read the command line parameters
5) (In program.exe) send output to cmd.exe "Program successfully completed, with params: ...etc"
So, as you can see, I just want it to be like every other command line tool -- no GUI, no other windows, etc. But...
I've tried "Print" -- it just opens another window and prints whatever.
I've tried "execfile("echo <message>")" -- it doesn't seem to do anything.
I don't notice any other ways in native blitz (not similar to these) to just print output to the console from which the program was executed.
Is there a way, or am I going to have to get creative with an external program or DLL?