Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
im new to this technology ,so that i do not have any idea about this powershell launch with button click.so will you plz help me.  


What I have tried:

void GUIFrame::getAssemblyDir()
{
wxStandardPaths &path = wxStandardPaths::Get();
	path.UseAppInfo(wxStandardPaths::AppInfo_AppName);
	wxString exePath = path.GetDataDir();

}
Posted
Updated 17-Dec-17 20:26pm
v3

You do it like with any C/C++ program for Windows. Use the standard library function system - C++ Reference[^] to invoke cmd.exe or the CreateProcess function (Windows)[^] passing cmd.exe or powershell.exe with appropriate parameters.
 
Share this answer
 
i have found the solution for this task.

Try this:
wxExecute("cmd");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900