EXECUTE

EXECUTE F [Pi]

EXECUTES THE FILE F WITH PARAMETERS IN OPTION

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

ACTION

The command EXECUTE F executes the file F. 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 use the web browser by default. For instance, to display the forum of PANORAMIC, the command is:

execute "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 spaces.

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

SYNTAX: EXECUTE F / EXECUTE F Pi

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

USE

  • The command EXECUTE is used to execute a file.

ERROR

  • If F is not a correct name of file.

EXAMPLE

rem lauch the program prg.exe

execute "prg.exe"

rem lauch the program prog.exe with 1 parameter

execute "prog.exe 50"

SEE ALSO

EXECUTE_WAIT