hello I am trying to open a .ps1 file(powershell file) with a C++ program. The problem I meet is that the .ps1 file is opening in Powershell ISE. I want to make it open with Powershell command line. Is there a function or a bunch of code that do so?
1) I am not using a function I am opening the .ps1 file the dumbest way, with system("start something.ps1");
I know, I know it is slow, but anyway...
2)I normally associate the .ps1 file with the Powershell command line, using right click of the mouse and then choosing open with... and then I just choose the program(Powershell command line)
3)I found that in the Internet is it relevant for my case? ShellExecute(0, 0, L"c:\\outfile.txt", 0, 0 , SW_SHOW );
I normally associate the .ps1 file with the Powershell command line, using right click of the mouse and then choosing open with... and then I just choose the program(Powershell command line)