| Home | All functions | Categories |
vuRunExists(*CSTRING pFile), LONG
Attempts to run the specified file if it exists. This is a quick way to launch an application or document only if the file is present.
| Parameter | Data Type | Description |
|---|---|---|
| pFile | CSTRING(260) | Full path to the file to execute if present |
Note: In vuFileTools V5, CSTRINGs are not limited to the size shown above. The number is for example only.
A LONG value indicating the result:
FilePath CSTRING(260)
Ret LONG
FilePath = 'C:\Windows\notepad.exe'
Ret = vuRunExists(FilePath)
MESSAGE('vuRunExists returned: ' & FORMAT(Ret), 'vuRunExists Test')
Notes
Use when you want to execute a file only if it exists.
If the file does not exist, no action is taken and the function returns 0.
| Home | All functions | Categories |