Command Reference - File Actions
Opens, plays, prints or performs some other action on a file using the associated viewer on the user's system.
When you perform this action on a document, Windows will open the document using the document viewer associated with that file type. For example, if you open a file called ReadMe.txt, the text file will most likely be opened with Notepad, unless the user has associated a different text viewer with the .txt file type on their system.
This action takes advantage of the Windows shell. You probably use the Windows shell all the time without knowing it. For example, when you double-click on a folder, Windows performs a shell operation on the folder according to the instructions associated with the "open" verb for folders. If you right-click on a folder and select "explore", Windows performs the instructions associated with the "explore" verb, instead.
|
Action ID: |
7 |
|
TIP |
|
|
|
|
|
You can determine the associated viewer for any file type by using the "File - Get Information" action. |
The full path and file name of the file to open (e.g. %SrcDir%\My Docs\My Doc.txt).
Note: when using the Explore verb to open a folder, don't specify a filename—just specify the path to the folder itself (e.g. %SrcDir%\My Docs).
The shell "verb" that tells the associated viewer what to do with the file. You can type your own verb, or choose from:
|
Open |
- |
Opens the file, just like it was double-clicked in Windows. |
|
|
- |
Uses the associated viewer to print the file. |
|
Explore |
- |
Opens the file/folder in Windows Explorer. |
|
Play |
- |
Plays the file (for example, if it's a video or audio file). |
The working directory to use when the file is opened.
The run mode that will be applied to the file when it is opened. The three available modes are:
|
Normal |
- |
The file will be opened to its normal window size. |
|
Minimized |
- |
The file will be minimized upon launching. |
|
Maximized |
- |
The file will be maximized upon launching. |
|
Value |
Simple Message |
Verbose Message |
|
0 (OK) |
|
|
|
1 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |
|
2 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |
|
3 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |
|
4 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |
|
5 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |
|
6 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |
|
7 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |
|
8 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |
|
9 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |
|
10 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |
|
11 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |
|
12 |
MSG_ERR_OPENING_FILE |
MSG_ERR_OPENING_FILE |