Add comment W32 Constants Translate this page
Performs an operation on a specified file.|
DECLARE INTEGER ShellExecute IN shell32;
Handle to a parent window. This window receives any message boxes that an application produces, such as error reporting.
A string, referred to as a verb, that specifies the action to be performed: edit, explore, find, open, print
Address of a null-terminated string that specifies the file or object on which to execute the specified verb.
If the lpFile parameter specifies an executable file, lpParameters is an address to a null-terminated string that specifies the parameters to be passed to the application.
Address of a null-terminated string that specifies the default directory.
Flags that specify how an application is to be displayed when it is opened.
|Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise. . The return value is cast as an HINSTANCE for backward compatibility with 16-bit Microsoft® Windows® applications. It is not a true HINSTANCE, however.|
= ShellExecute(0, "print", "c:\aa\index.txt",;
"", "", SW_SHOWMAXIMIZED)
|The following verbs are commonly used: edit, explore, find, open, print and properties.|
See also: ShellExecuteEx, CreateProcess, AssocQueryString
|Translate this page:|
Visited in last 7 days: 130
|Created: ||2001-08-06 12:00:00|
|Modified: ||2012-10-12 13:24:05|
||User Contributed Notes:
|Sarabjeet Singh Reen | 2005-06-03 10:48:58|
|How to know that the executable which we are running using shellexecute is closed. When we write any code after the shellexecute command it executes after opening the window.|
How do we write the code which we want to run after the executable is finished running
Copyright © 2001-2017
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.6.35), the Open Source standard SQL database,
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.