Previous topic

Shell_IsShortcut

Next topic

ShowWaitCursor

This Page

ShellExecuteΒΆ

ShellExecute opens a file with a program which is registerd for the file type.

nErrorCode = ShellExecute(ssFile)

Return Value

If nErrorCode is greater than 32 the function was successfully otherwise an error occurred.

Parameters

ssFile

ssFile is the complete file name.

Example

ShellExecute("d:\test.xls");

// Opens the Windows Explorer
ShellExecute("c:\program files");

id-329545