Run my third-party DLL file with PowerShell

前端 未结 3 403
死守一世寂寞
死守一世寂寞 2020-12-13 13:56

I am not sure if this is possible or not with PowerShell.

But basically I have a Windows Forms program that configures a program called EO Server. The EO Server has

3条回答
  •  别那么骄傲
    2020-12-13 14:44

    Actually the other offered solutions don't work for me, here it's an alternative that works perfectly for me:

    $AssemblyPath = "C:\SomePath\SomeLIB.dll"
    $bytes = [System.IO.File]::ReadAllBytes($AssemblyPath)
    [System.Reflection.Assembly]::Load($bytes)
    

提交回复
热议问题