Mega Code Archive

 
Categories / VB.Net / Reflection
 

AppDomain ExecuteAssembly executes the assembly contained in the specified file

Module Test    Sub Main()       Dim currentDomain As AppDomain = AppDomain.CurrentDomain       Dim otherDomain As AppDomain = AppDomain.CreateDomain("otherDomain")       currentDomain.ExecuteAssembly("MyExecutable.exe")       otherDomain.ExecuteAssembly("MyExecutable.exe")    End Sub 'Main End Module 'Test