![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | possible to set assembly probing path in powershell? I need to load a few assemblies into powershell and exercise via scripting. I've been having problems getting it to work right (a lot of FileExceptions, cant load assembly). I recently read a blog about needing to set probing path for Powershell. It'd be great to be able to set assembly probing path inside of Powershell via script? Is this possible? |
| | #2 (permalink) | ||||||||||||
| Guest | Re: possible to set assembly probing path in powershell? Steve wrote:
these? Are you using loadfrom? This is a good method for loading multiple assemblies: Get-ChildItem $profiledir\Assemblies\*.dll | % { [void][reflection.assembly]::LoadFrom( $_.FullName ) write-host "Loading .NET assembly:`t$($_.name)" } -- Hal Rottenberg <hal@xxxxxx> Author, TechProsaic (http://halr9000.com) Webmaster, Psi (http://psi-im.org) Co-host, PowerScripting Podcast (http://powerscripting.net) | ||||||||||||
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing the PATH variable in the registry with Powershell | meissnersd | PowerShell | 4 | 04-25-2008 02:40 PM |
| Powershell passing $null to .Net assembly is cast to String.Empty | Mel | PowerShell | 5 | 02-12-2008 05:42 AM |
| Load path behaves differently in Vista Powershell? | Sue & Bill | PowerShell | 1 | 01-13-2008 07:19 PM |
| Loading assembly dependencies with Powershell | J.Marsch | PowerShell | 0 | 02-08-2007 05:47 PM |
| BUG? (Test-Path $path -IsValid) and empty $path | =?Utf-8?B?Um9tYW4gS3V6bWlu?= | PowerShell | 1 | 08-28-2006 12:10 PM |