|
Previous Top Next |
Prototype: | (String pFile, <String pOp>, <String pParam>, <String pDir>, Long pShow=IT_SW_SHOWNORMAL),Long,PROC |
pFile | Filename to execute. |
pOp | Optional verb to use. |
pParam | Optional parameters to pass. |
pDir | Optional default directory/folder to use. |
pShow | Optional Show parameters. |
Returns | If the file passed in pFile is not found the return value is -999. If it is found the return value is the return value from the ShellExecute api. |
This is the same as the ShellExec method except that the first parameter (window handle) is skipped. For more information about the ShellExecute api I suggest reading about it on the Microsoft Developer Network (MSDN).
This method is a very powerful wrapper for the API and gives you all the power that API can give you.
Example:
ITS ITShellExec
Code
ITS.ITShellExec('http://www.icetips.com') !! Opens the Icetips website
ITS.ITShellExec('C:\mydoc.doc',IT_SE_PRINT) !! Sends C:\mydoc.doc to the printer.
ITS.ITShellExec('C:\Mybat.bat',IT_SE_OPEN,,,IT_SW_SHOWMINIMIZED) !! Runs the .bat file in a minimized window
See also: