How to fetch output of command of powershell with C++?
问题 i implemented program of network statistics with help of powershell scrpit. the program is running successfully and giving me perfact output as well . below is my program. int main(int argc, char *argv[]) { string strPath = "C:\\Get-NetworkStatistics.ps1"; char str[50] = "C:\\Get-NetworkStatistics.ps1"; char command[500]; //access function: //The function returns 0 if the file has the given mode. //The function returns –1 if the named file does not exist or does not have the given mode if