Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1723

C++ and PowerShell

$
0
0
I am naive when it comes to C++,
but CoPilot helped me in creating simple C++ code,
that demonstrates executing a PowerShell Command,
which I compiled,
and successfully executed.
Rich (BB code):
#using <mscorlib.dll>
#using <System.Management.Automation.dll>

#include <iostream>
#include <string>
#include <msclr\auto_handle.h>

using namespace System;
using namespace System::Management::Automation;
using namespace System::Collections::ObjectModel;

void ExecutePowerShellCommand(String^...

Read more

Viewing all articles
Browse latest Browse all 1723

Trending Articles