myContainer.launch( commandLine, flags ) in Anark Studio 2.5

Start a program, open a file.

Arguments

nametypedescription
commandLine String Application and file to launch
flags Number Reserved for future use; must<
Return Type
(none)

Description

If the application and file are in the same directory as the AMPlayer.exe file, then this can be specified using just the executable name and file name as in:

player.container.launch( "Acrobat.exe Data.pdf" , 0 )

Windows uses the following search path for launch:

  1. The directory from which the application is loaded.
  2. The current directory for the parent process.
  3. The Windows System directory.
  4. The Windows directory.
  5. The directories specified in the PATH environment variable.

The absolute or relative path to the executable and file can be specified for the PATH environment variable as in the following example:

player.container.launch( ".\Reports\Acrobat.exe .\ReportsData.pdf" , 0 )

Mac OS uses the absolute path to the file and uses the default application to open it, as in the following example:

player.container.launch( "users/username /sites/index.html" , 0 )