Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.67K
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 1

1 Posted Topic

Member Avatar for Zach1188

#include <Windows.h> void my_cmd() { STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory(&si, sizeof(si)); si.cb = sizeof(si); ZeroMemory(&pi, sizeof(pi)); // CMD command here char arg[] = "cmd.exe /c E:/Softwares/program.exe"; // Convert char string to required LPWSTR string wchar_t text[500]; mbstowcs(text, arg, strlen(arg) + 1); LPWSTR command = text; // Run process CreateProcess (NULL, …

Member Avatar for Giver
0
3K

The End.