Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_InteractInteraction

Public Function SafeShell (
PathName As String,
Optional WindowStyle As VbAppWinStyle = vbMinimizedFocus,
Optional ThrowError As Boolean = False
) As Integer

wraps the VBA 'Shell' function, suppressing any error message.
See Shell function for use.

PathName as String

The target program path

Optional WindowStyle as VbAppWinStyle = vbMinimizedFocus

The WindowStyle of the new command window

Optional ThrowError as Boolean = False

Throw an error if one occurs

Call Template:

Dim i As Integer
i = xf.Interact.SafeShell(PathName)
i = xf.Interact.SafeShell(PathName, WindowStyle, ThrowError)

See Also:

Example 1:

SafeShell "C:\Program Files\SysInternals\du.exe"
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd