PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of Process variables
  • Functions that use the Process type
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
Process (Type of variable)
In French: Processus
The Process type is used to define the characteristics of the remote application that can be started by ExeRemoteRun.
The characteristics of this application can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
AppToStart is Process
AppToStart..Executable = "myapp.exe"
AppToStart..CommandLine = "/SILENT"
AppToStart..ExecutionLogin = "DOMAIN\USER"
AppToStart..ExecutionPassword = "mypassword"

ExeRemoteRun(AppToStart, exeReturnValue, "COMPUTER2")
WHILE AppToStart..ExecutionInProgress
Wait(100)
END

Trace(AppToStart..ReturnValue)
Remarks

Properties specific to the description of Process variables

The following properties can be used to handle a process:
Property nameType usedEffect
ExecutableCharacter stringPath of application to start. This path is local to the computer where the application will be started. The application must be found on the remote computer because ExeRemoteRun does not copy the executable.
No UNC path can be used.
ExecutionInProgressBoolean
  • True if the remote application is currently run,
  • False otherwise.
    This property is available in read-only.
CommandLineCharacter stringCommand line of application to start. The executable name must not be found in this command line.
ExecutionLoginCharacter stringLogin of user who must start the process. This login can correspond to:
  • a character string whose format is "Domain\User".
  • the AccountLocalSystem constant: In this case, the application will be started with the account of the operating system.
If this property corresponds to an empty string, the current user account is used (user account on the current computer).
ExecutionPasswordCharacter stringPassword associated with the user.
This property is available in write mode.
ComputerNameCharacter stringName of remote computer on which the process will be run.
This property is available in read-only.
PIDIntegerIdentifier of process. This property is set to -1 if the execution of the remote application is completed.
WorkingDirectoryCharacter stringDirectory for starting the remote application. This path is local to the computer where the application will be started.
ReturnValueIntegerReturn value returned by the remote application. If the remote application is not completed, this property is set to 257. If the remote application was not started, this property is set to 0.


Note: These properties can be used with one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Functions that use the Process type

The following functions can be used to handle a Process variable:
ExeRemoteRunStarts running a remote program from the current application.
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment