ExecFile command

Blitz3D Forums/Blitz3D Programming/ExecFile command

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 all !

I've a problem with "execfile" command :

Unlike what is printed in "BLITZ3D Manual book" (page 175) - see note (*)- , EXECFILE don't wait that file$ is completed ...

Example :
;----------------------------------------------------------------
file$="EXCEL.EXE"
ExecFile(file$)
Print " >> message after execfile command"
WaitKey()
End
;----------------------------------------------------------------

==> This little program opens an EXCEL window but, instantaneously, it write message on runtime windows, without waiting exit of EXCEL.

So, What do yo think about this ? Have you answer ?
I know that in DARKBASIC, ExecFile command has another parameter to wait (or not) that file$ is completed.

Thanks for reply 8-)))
-----------------------------------------------------------
(*) extract from Manual:
"Use this command to HALT execution of your program and run an external program"