docs

Home All functions Categories

vuShell(FileName)

vuShell(*CSTRING), Long

Description

Runs a file with its associated executable. For example, opening a Word document will launch Microsoft Word.

Function Separate File/Params Working Folder Delay Wait Notes
vuShell No No No No Simple shell launch that honors Windows file associations.
vuShellDelay No No Yes No Shell launch after a startup delay.
vuShellEx Yes Yes No No Preferred shell launch when you want file and parameters passed separately.
vuShellExDelay Yes Yes Yes No Shell launch with separate parameters plus startup delay.

Parameters

Parameter Data Type Description
FileName CSTRING(256) Fully qualified path and name of the file to run.

Returns

A LONG value containing the instance handle of the application that was run.

Example

FileName = 'MyDocument.doc'
AppHandle = vuShell(FileName)

IF AppHandle
  MESSAGE('Application launched successfully.')
ELSE
  MESSAGE('Failed to launch application.')
END

Notes

Home All functions Categories