Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. $code =’using System.Diagnostics;
  2. class Program
  3. {
  4. static void Main()
  5. {
  6. //
  7. // your code
  8. //
  9. Process.Start("C:\\calc.exe");
  10. }
  11. } ’;
  12.  
  13. $code
  14. $code | Out-File windowscodecs.cs
  15. $path = Resolve-Path windowscodecs.cs
  16. $compiler = "$env:windir/Microsoft.NET/Framework/v2.0.50727/csc"
  17. &$compiler /target:library windowscodecs.cs
  18. dir windowscodecs*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement