docs

Home All functions Categories

vuShellExDelay(pFile, pParams, pWork, ShowCmd, DelayMS)

vuShellExDelay(*CSTRING pFile, *CSTRING pParams, *CSTRING pWork, LONG ShowCmd, LONG DelayMS), LONG

Description

Runs an external program using the Windows shell with optional parameters and working directory after a specified delay.

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
pFile CSTRING(260) Path to the file or executable to run.
pParams CSTRING(260) Optional command-line parameters to pass.
pWork CSTRING(260) Working directory for the process.
ShowCmd LONG Window show mode (see Windows SW_* constants).
DelayMS LONG Delay in milliseconds before the launch begins.

Note: In vuFileTools V5, CSTRINGs are not limited to the size shown above. The number is for example only.

Returns

A LONG value indicating the result:

Example

FilePath   CSTRING(260)
Params     CSTRING(260)
WorkFolder CSTRING(260)
ShowCmd    LONG
DelayMS    LONG
Ret        LONG

FilePath   = 'C:\Temp\Readme.txt'
Params     = ''
WorkFolder = ''
ShowCmd    = 1
DelayMS    = 1500

Ret = vuShellExDelay(FilePath, Params, WorkFolder, ShowCmd, DelayMS)

Notes

Home All functions Categories