EXECUTE_WAIT

EXECUTE_WAIT F [Pi]

EXECUTES THE FILE F WITH PARAMETERS IN OPTION AND WAITS FOR THE END

  • Type: Command
  • Parameters: n
  • Group: System

ACTION

The command EXECUTE_WAIT F executes the file F and waits for the end. F is the absolute or relative name of the file or the name of an URL. In The case, the name must begin by "http://" and the command EXECUTE_WAIT use the web browser by default. For instance, to display the forum of PANORAMIC, the command is:

execute_wait "http://panoramic.free-boards.net"

The absolute name is the entire name, related to the root of the file system (ex: "c:\temp\file.exe").

The relative name is the name of the file related to the current directory (ex: "file.exe" or "/file.exe" or "\file.exe").

The command can pass one or several parameters to the executable file F. The parameters must be separated from the executable name by the character |. The parameters must be separated by spaces.

Example : EXECUTE_WAIT "Make_exe.exe|-e source.bas" launches the executable "Make_exe.exe" and passes it two parameters "-e" and "source.bas".

SYNTAX: EXECUTE_WAIT F / EXECUTE_WAIT F Pi

  • SYNTAX 1:
  • EXECUTE_WAIT F
  • F = absolute or relative name of the file.
  • SYNTAX 2:
  • EXECUTE_WAIT F P1 P2 ...
  • F = absolute or relative name of the file.
  • Pi = parameter.

USE

  • The command EXECUTE_WAIT is used to execute a file and to wait for the end.

ERROR

  • If F is not a correct name of file.

EXAMPLE

rem lauch the program prg.exe

execute_wait "prg.exe"

rem lauch the program prog.exe with 1 parameter

execute_wait "prog.exe 50"

SEE ALSO

EXECUTE