File - Execute

This action will execute (run) a specified file.

Action ID:
Action Category:
Action List Syntax:

8
File 
File.Execute (<<FILENAME>>)

Settings

File to execute:

The full path to the file to execute (e.g. %SrcDrv%\My Docs\My Doc.txt).

Command line arguments:

The command line arguments that will be passed to the executable.

Working directory:

The working directory to use when the file is opened.

Run mode:

The run mode that will be applied to the file when it is executed. The three available modes are:

Normal

-

The program will open to its normal window size.

Minimized

-

The program will be minimized upon launching.

Maximized

-

The program will be maximized upon launching.

Wait for program to finish running before continuing:

Select this option if you want AutoPlay to wait until the file being executed has closed before continuing.

When this option is enabled, AutoPlay Media Studio will execute the file and then wait for it to close before moving on to the next action.

When this option is disabled, AutoPlay Media Studio will move on to the next action without pausing.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_FILE_NOT_FOUND
<<FILENAME>>

2

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_PATH_NOT_FOUND
<<FILENAME>>

3

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_INVALID_EXE
<<FILENAME>>

4

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_ACCESS_DENIED_OS
<<FILENAME>>

5

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_INCOMP_FILE_ASSOC
<<FILENAME>>

6

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_DDE_INUSE
<<FILENAME>>

7

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_DDE_FAILED
<<FILENAME>>

8

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_DDE_TIMEOUT
<<FILENAME>>

9

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_DLL_NOT_FOUND
<<FILENAME>>

10

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_NO_ASSOC
<<FILENAME>>

11

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_NO_MEMORY
<<FILENAME>>

12

MSG_ERR_OPENING_FILE

MSG_ERR_OPENING_FILE
MSG_ERR_SHARE_VIOLATION
<<FILENAME>>

 

Examples

Displaying a busy dialog while running a program

Moving a window

Minimizing the AutoPlay application

Opening Internet Explorer in kiosk mode

Running a PowerPoint presentation

Running a PowerPoint presentation (advanced)