RunSpace03 Code Samples
Here are the code samples for the runspace described in "Creating a Console Application That Runs a Specified Script".
Note
You can download the C# source file (runspace03.cs) and the VB.NET source file (runspace03.vb) for this sample using the Microsoft Windows Software Development Kit for Windows Vista and Microsoft .NET Framework 3.0 Runtime Components. For download instructions, see How to Install Windows PowerShell and Download the Windows PowerShell SDK. The downloaded source files are available in the <PowerShell Samples> directory.
For complete sample code, see the following topics.
Language | Topic |
---|---|
C# | RunSpace03 (C#) Code Sample |
VB.NET | RunSpace03 (VB.NET) Code Sample |
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for