Advertisement
Guest User

Untitled

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