Loaddll

From Visual DialogShell Wiki
Jump to navigation Jump to search
function loaddll ($a){
	if ($(substr $a 0 2) -eq 'ht') {
		$s = iwr $a
        return [Reflection.Assembly]::Load($s.content) | out-null
	}
	else {
		[Reflection.Assembly]::LoadFile($a) | Out-Null
	}
<#
    .SYNOPSIS
     Loads a dynamic link library
     
    .DESCRIPTION
     VDS
    loaddll c:\temp\dotnet.dll
	loaddll https://mydomain.com/dotnet.dll
    
    .LINK
    https://dialogshell.com/vds/help/index.php/loaddll
#>			
}