Namespace: Consultingwerk.Windows.Util.Forms
Class 
ExecuteShellCommandDialog Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.Windows.BaseForms.BaseDialogForm
Implements: IBaseForm, ICustomTypeDescriptor, IHasDesignerVerbs, IHasSecurityKey

File:ExecuteShellCommandDialog
Syntax:oDialog:Execute ("DIR c:\Windows") .
Description:Dialog that can launch a Windows Shell Command (DOS Command)
and display the output in an Editor Control
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Dec 21 12:00:44 CET 2014
Notes:SCL-597
Does not support executing built in OS-Shell commands like
"dir", needs executable file passed in as parameter



Top Method Summary
Options Name Purpose
ButtonOk_Click (Object, EventArgs) Event handler for the Click event of the ButtonOk
copyToolStripMenuItem_Click (Object, EventArgs) Event handler for the Click event of the copyToolStripMenuItem
Execute (character) Executes a Windows Shell Command (DOS Command)
ExecuteCommand () Executes the command
ExecuteNonModal (character) Executes a Windows Shell Command (DOS Command)
InitializeComponent ()
OnFormClosing (FormClosingEventArgs) Raises the FormClosing event
OnShown (EventArgs) Raises the Shown event
OutputCommand ()
ProcessDataAvailableHandler (Object, EventArgs) Event handler for the DataAvailable event of the Consultingwerk.Support.ProcessOutputReader control instance
ProcessErrorDataAvailableHandler (Object, EventArgs) Event handler for the ErrorDataAvailable event of the Consultingwerk.Support.ProcessOutputReader control instance
ProcessExitedHandler (Object, EventArgs) Event handler for the Exited event of the Process
richTextBox1_LinkClicked (Object, LinkClickedEventArgs) Event handler for the LinkClicked event of the richTextBox1
selectAllToolStripMenuItem_Click (Object, EventArgs) Event handler for the Click event of selectAllToolStripMenuItem
ultraTrackBar1_ValueChanged (Object, EventArgs) Event handler for the ValueChanged event of the ultraTrackBar1

Top Constructor Summary
Options Name Purpose
ExecuteShellCommandDialog () Constructor for the ExecuteShellCommandDialog class

Top Property Summary
Options Name Purpose
LOGICAL Failed
CHARACTER HiddenParameter
CHARACTER WorkingDirectory


Method Detail
Top

ButtonOk_Click (Object, EventArgs)

Purpose: Event handler for the Click event of the ButtonOk
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

copyToolStripMenuItem_Click (Object, EventArgs)

Purpose: Event handler for the Click event of the copyToolStripMenuItem
Notes:

Parameters:
sender System.Object
The reference to the control that raised the event
e System.EventArgs
The KeyPressEventArgs with the data for this event
Top

Execute (character)

Purpose: Executes a Windows Shell Command (DOS Command)
Notes: Executes this Form via ShowDialog

Parameters:
pcCommand CHARACTER
The command to execute
Top

ExecuteCommand ()

Purpose: Executes the command
Notes: Enables the OK Button when donw

Top

ExecuteNonModal (character)

Purpose: Executes a Windows Shell Command (DOS Command)
Notes: Executes this Form via ShowDialog

Parameters:
pcCommand CHARACTER
The command to execute
Top

InitializeComponent ()


Top

OnFormClosing (FormClosingEventArgs)

Purpose: Raises the FormClosing event
Notes:

Parameters:
e System.Windows.Forms.FormClosingEventArgs
The FormClosingEventArgs with the data for this event
Top

OnShown (EventArgs)

Purpose: Raises the Shown event
Notes:

Parameters:
e System.EventArgs
The System.EventArgs with the data for this event
Top

OutputCommand ()

Purpose:
Notes:

Top

ProcessDataAvailableHandler (Object, EventArgs)

Purpose: Event handler for the DataAvailable event of the
Consultingwerk.Support.ProcessOutputReader control instance
Notes: Raises the ProcessOutputChanged event of the BackgroundJob instance

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The default System.EventArgs with the data for this event
Top

ProcessErrorDataAvailableHandler (Object, EventArgs)

Purpose: Event handler for the ErrorDataAvailable event of the
Consultingwerk.Support.ProcessOutputReader control instance
Notes: Raises the ProcessOutputChanged event of the BackgroundJob instance

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The default System.EventArgs with the data for this event
Top

ProcessExitedHandler (Object, EventArgs)

Purpose: Event handler for the Exited event of the Process
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

richTextBox1_LinkClicked (Object, LinkClickedEventArgs)

Purpose: Event handler for the LinkClicked event of the richTextBox1
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.Windows.Forms.LinkClickedEventArgs
The LinkClickedEventArgs with the data for this event
Top

selectAllToolStripMenuItem_Click (Object, EventArgs)

Purpose: Event handler for the Click event of selectAllToolStripMenuItem
Notes:

Parameters:
sender System.Object
The reference to the control that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

ultraTrackBar1_ValueChanged (Object, EventArgs)

Purpose: Event handler for the ValueChanged event of the ultraTrackBar1
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event


Constructor Detail
Top

ExecuteShellCommandDialog ()

Purpose: Constructor for the ExecuteShellCommandDialog class
Notes:



Property Detail
Top

LOGICAL Failed


Returns LOGICAL
Top

CHARACTER HiddenParameter


Returns CHARACTER
Top

CHARACTER WorkingDirectory


Returns CHARACTER


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       13.04.2026 10:33:32