2025-11-28 00:35:46 +09:00

35 lines
1.2 KiB
Plaintext

Runspace Sample 02
==========================
This sample uses the RunspaceInvoke class to execute
the get-process cmdlet synchronously. Windows Forms and data
binding are then used to display the results in a
DataGridView control
Sample Language Implementations
===============================
This sample is available in the following language implementations:
- Visual Basic
To build the sample using Visual Studio:
=======================================
1. Open Windows Explorer and navigate to Runspace02 under the samples directory.
2. Double-click the icon for the .sln (solution) file to open the file in Visual Studio.
3. In the Build menu, select Build Solution.
The library will be built in the default \bin or \bin\Debug directory.
To run the sample:
=================
1. Start command prompt.
2. Navigate to the folder containing the sample executable.
3. Run the executable
Demonstrates
============
This sample demonstrates the following:
1. Creating an instance of the RunspaceInvoke class.
2. Using this instance to invoke a PowerShell command.
3. Using the output of RunspaceInvoke in a DataGridView
in a Winforms application