lpOperation: Sæt til \"open\" for at åbne en fil med dets associerede program.
lpFile: Filnavnet
lpParameters: Parametre til den kaldte fil - kan ofte udelades.
lpDirectory: Arbejds-dir.
nShow: Hvordan vinduet skal vises.
nShow har flg. muligheder (copy-paste):
One of the following flags specifying how to display any window that might be opened:
SW_HIDE
Hide the opened window.
SW_MAXIMIZE
Maximize the opened window.
SW_MINIMIZE
Minimize the opened window.
SW_RESTORE
Restore the opened window (not maximized nor minimized).
SW_SHOW
Show the opened window.
SW_SHOWMAXIMIZED
Show the opened window maximized.
SW_SHOWMINIMIZED
Show the opened window minimized.
SW_SHOWMINNOACTIVE
Show the opened window minimized but do not activate the it.
SW_SHOWNA
Show the opened window in its current state but do not activate it.
SW_SHOWNOACTIVATE
Show the opened window in its most recent size and position but do not activate it.
SW_SHOWNORMAL
Show the opened window and activate it (as usual).
Konstanter:
Const ERROR_BAD_FORMAT = 11
Const SE_ERR_ACCESSDENIED = 5
Const SE_ERR_ASSOCINCOMPLETE = 27
Const SE_ERR_DDEBUSY = 30
Const SE_ERR_DDEFAIL = 29
Const SE_ERR_DDETIMEOUT = 28
Const SE_ERR_DLLNOTFOUND = 32
Const SE_ERR_FNF = 2
Const SE_ERR_NOASSOC = 31
Const SE_ERR_OOM = 8
Const SE_ERR_PNF = 3
Const SE_ERR_SHARE = 26
Const SW_HIDE = 0
Const SW_MAXIMIZE = 3
Const SW_MINIMIZE = 6
Const SW_RESTORE = 9
Const SW_SHOW = 5
Const SW_SHOWMAXIMIZED = 3
Const SW_SHOWMINIMIZED = 2
Const SW_SHOWMINNOACTIVE = 7
Const SW_SHOWNA = 8
Const SW_SHOWNOACTIVATE = 4
Const SW_SHOWNORMAL = 1
Du kan kigge på
http://www.vbapi.com/ref/s/shellexecute.html for mere info.