PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use in service mode
  • Operating mode in GO mode and at run time
  • Required application feature
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Opens a document in its associated application. The application is opened first, then the specified document.
Note: The application used to open the document is the one associated with the extension of the document in Windows (INI file or registry). This associated application may differ according to the configurations used.
WEBDEV - Server code This document is opened on the server. This function can be used on the development computer because this compute is considered as being the server.
WEBDEV - Browser code This document must be found on the server or at any Internet address. This document is opened on the computer of the Web user.
Versions 16 and later
Android This function is now available for the Android applications.
Android The application used to open the document is the application corresponding to the MIME type associated with the file extension. If several applications correspond to the same type of file, a dialog box will be displayed to select the application to start.
New in version 16
Android This function is now available for the Android applications.
Android The application used to open the document is the application corresponding to the MIME type associated with the file extension. If several applications correspond to the same type of file, a dialog box will be displayed to select the application to start.
Android This function is now available for the Android applications.
Android The application used to open the document is the application corresponding to the MIME type associated with the file extension. If several applications correspond to the same type of file, a dialog box will be displayed to select the application to start.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad ShellExecute is a locking function: the application will continue to run when closing the document and its associated application. The document must be found on the computer.
Note: To display an Internet page via its URL, use BrowserRunApp.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad ShellExecute is a locking function: the application will continue to run when closing the document and its associated application. The document must be found on the computer.
Note: To display an Internet page via its URL, use BrowserRunApp.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad ShellExecute is a locking function: the application will continue to run when closing the document and its associated application. The document must be found on the computer.
Note: To display an Internet page via its URL, use BrowserRunApp.
Versions 19 and later
WINDEVJava This function is now available for the Java applications.
New in version 19
WINDEVJava This function is now available for the Java applications.
WINDEVJava This function is now available for the Java applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
WINDEVWEBDEV - Server codeWEBDEV - Browser codeReports and QueriesAjaxUser code (UMC)
// Opens the "Functions.doc" document in Word
ShellExecute("C:\WDNEWS\Version\Functions.doc")
// Prints the document
ShellExecute("C:\WDNEWS\Version\Functions.doc", "print")
Windows Mobile
// Opens the "Functions.psw" document in Word
ShellExecute("\WDNEWS\Version\Functions.psw")
WINDEVReports and QueriesWindows MobileUser code (UMC)
// Open a site in the default browser
ShellExecute("http://www.windev.com")
WINDEVReports and QueriesWindows MobileUser code (UMC)
// Start the default messaging
ShellExecute("mailto:pcsoft@windev.com")
// Start the messaging with parameters
// Parameters recognized by Outlook
ShellExecute("mailto:pcsoft@windev.com" + ...
"?subject=Subject: LST &body=Text: the summary of the LST")
WINDEVReports and QueriesUser code (UMC)
// Opens the "Invoice.doc" document from its shortcut
ShellExecute("""C:\Documents and Settings\Julia\Desktop\Shortcut to Invoice.doc.lnk""")
WEBDEV - Browser code
// Open a site in the current browser
ShellExecute("http://www.windev.com")
Syntax
<Result> = ShellExecute(<File Name> [, <Verb>])
<Result>: Boolean
  • True if the document was opened,
  • False otherwise.
WEBDEV - Browser codePHP This parameter is not available. This function returns no result.
Java Returns False if the application is run with a Java virtual machine (JRE) earlier than version 1.6.
<File Name>: Character string (with quotes)
Name and full (or relative) path of document to open. A UNC path can be used.
If space characters are found in the name or path of the document to open, the quotes found around this parameter must be tripled.
WINDEV This parameter can also correspond to a Windows shortcut.
Windows Mobile No relative path or UNC path can be used.
Versions 16 and later
AndroidAndroid Widget This parameter can correspond to a full path, to a relative path or to a URI.
For example:
  • "/sdcard/photo.png"
  • "/sdcard/video.3gp".
  • "http://www.windev.com": starts the Web browser on the specified page.
  • "geo:1.44951,43.604363": starts Google Maps or equivalent.
  • "mailto:pcsoft@pcsoft.fr" starts the application for sending emails.
  • "sms:0612345678": starts the application for sending SMSs.
The files found in the application directory (or in one of its sub-directories) are not accessible by most of the external applications. We recommend that you use ShellExecute with files found on the external memory of the device (for example: sdcard) because they are accessible from all the applications.
New in version 16
AndroidAndroid Widget This parameter can correspond to a full path, to a relative path or to a URI.
For example:
  • "/sdcard/photo.png"
  • "/sdcard/video.3gp".
  • "http://www.windev.com": starts the Web browser on the specified page.
  • "geo:1.44951,43.604363": starts Google Maps or equivalent.
  • "mailto:pcsoft@pcsoft.fr" starts the application for sending emails.
  • "sms:0612345678": starts the application for sending SMSs.
The files found in the application directory (or in one of its sub-directories) are not accessible by most of the external applications. We recommend that you use ShellExecute with files found on the external memory of the device (for example: sdcard) because they are accessible from all the applications.
AndroidAndroid Widget This parameter can correspond to a full path, to a relative path or to a URI.
For example:
  • "/sdcard/photo.png"
  • "/sdcard/video.3gp".
  • "http://www.windev.com": starts the Web browser on the specified page.
  • "geo:1.44951,43.604363": starts Google Maps or equivalent.
  • "mailto:pcsoft@pcsoft.fr" starts the application for sending emails.
  • "sms:0612345678": starts the application for sending SMSs.
The files found in the application directory (or in one of its sub-directories) are not accessible by most of the external applications. We recommend that you use ShellExecute with files found on the external memory of the device (for example: sdcard) because they are accessible from all the applications.
Versions 18 and later
Universal Windows 10 App Only the files found in the "appdata" directory can be handled. No Internet URL can be specified.
New in version 18
Universal Windows 10 App Only the files found in the "appdata" directory can be handled. No Internet URL can be specified.
Universal Windows 10 App Only the files found in the "appdata" directory can be handled. No Internet URL can be specified.
<Verb>: Optional character string (with quotes)
Verb that must be used to start the document. The verbs are defined for each application, to indicate the actions that can be performed. The most common verbs are open or print. If this parameter is not specified, the verb used will be the default verb for the type of document.
WEBDEV - Browser codePHP This parameter is not available.
Versions 16 and later
WEBDEV - Browser codeAndroidPHP This parameter is not available.
WEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJavaPHP This parameter is not available.
New in version 16
WEBDEV - Browser codeAndroidPHP This parameter is not available.
WEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJavaPHP This parameter is not available.
WEBDEV - Browser codeAndroidPHP This parameter is not available.
WEBDEV - Browser codeAndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJavaPHP This parameter is not available.
Remarks

Use in service mode

ShellExecute used in service mode is used to run the associated application but the interface of this application is not visible.
Windows Mobile

Operating mode in GO mode and at run time

In GO mode (simulation on the development computer), the application to start must be found on the development computer.
At run time, the application to start must be found on the Pocket PC.
The differences between GO mode (simulator) and real use are presented in Differences between GO mode and real use.
Versions 21 and later
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Family and corporate networks
This feature allows the applications to use incoming and outgoing accesses to the family and corporate networks.
New in version 21
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Family and corporate networks
This feature allows the applications to use incoming and outgoing accesses to the family and corporate networks.
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Family and corporate networks
This feature allows the applications to use incoming and outgoing accesses to the family and corporate networks.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo ShellExecute
//Abre um Documento
ShellExecute("E:\_CursosGravados\_Nfe\MANUAL\NT_2015_003_v160-4.pdf")

//Abrir pagina internet
ShellExecute("http://www.matosinformatica.com.br/")

// Abrir Excel
ShellExecute("E:\aleva\notas.xls")

// Abre imprime
ShellExecute("e:\aleva\notas.xml","print")

//Envia email
ShellExecute("mailto:matosi@terra.com.br"+ ...
"?subject=Assunto: Teste de Email &body=Corpo:Teste de Email ")

http://windevdesenvolvimento.blogspot.com.br/2016/05/curso-windev-funcoes-exe-windows-003.html
https://www.youtube.com/watch?v=SGIzf6sPFXM
De matos AMARILDO
May 31 2016