Advertisement
Guest User

Untitled

a guest
May 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. std::string script = "powershell -executionPolicy bypass -file "MYFILE.ps1"";
  2.  
  3. system(script.c_str());
  4.  
  5. std::string script = "write-host " 2 " ";
  6.  
  7. ShellExecute(NULL, NULL, NULL, script.c_str(), NULL,SW_NORMAL );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement