Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $code =’using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Diagnostics;
- namespace PSDLL
- {
- class Program
- {
- static void Main()
- {
- Process.Start("example.txt");
- }
- }
- }’;
- $code
- $code | Out-File windowscodecs.cs
- $path = Resolve-Path windowscodecs.cs
- $compiler = "$env:windir/Microsoft.NET/Framework/v2.0.50727/csc"
- &$compiler /target:library windowscodecs.cs
- dir windowscodecs*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement