%%PageItemTitle%%

Compare .NET Objects

Compare .NET Objects
Shell Method
See Also  Send Feedback
KellermanSoftware.CompareNetObjects Namespace > ProcessHelper Class : Shell Method


executablePath
Path and filename of the executable.
arguments
Arguments to pass to the executable.
windowStyle
Window style for the process (hidden, minimized, maximized, etc).
waitUntilFinished
Wait for the process to finish.

Glossary Item Box

Execute an external program.

Syntax

Visual Basic (Declaration) 
Public Shared Function Shell( _
   ByVal executablePath As System.String, _
   ByVal arguments As System.String, _
   ByVal windowStyle As System.Diagnostics.ProcessWindowStyle, _
   ByVal waitUntilFinished As System.Boolean _
) As System.Integer
Visual Basic (Usage)Copy Code
Dim executablePath As System.String
Dim arguments As System.String
Dim windowStyle As System.Diagnostics.ProcessWindowStyle
Dim waitUntilFinished As System.Boolean
Dim value As System.Integer
 
value = ProcessHelper.Shell(executablePath, arguments, windowStyle, waitUntilFinished)
C# 
public static System.int Shell( 
   System.string executablePath,
   System.string arguments,
   System.Diagnostics.ProcessWindowStyle windowStyle,
   System.bool waitUntilFinished
)
Managed Extensions for C++ 
public: static System.int Shell( 
   System.string* executablePath,
   System.string* arguments,
   System.Diagnostics.ProcessWindowStyle windowStyle,
   System.bool waitUntilFinished
) 

Parameters

executablePath
Path and filename of the executable.
arguments
Arguments to pass to the executable.
windowStyle
Window style for the process (hidden, minimized, maximized, etc).
waitUntilFinished
Wait for the process to finish.

Return Value

Exit Code

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Kellerman Software 2018 All Rights Reserved.