I'm using the following statement for a striptoolMenuItem
$FileOpen.Image=[System.Drawing.Image]::FromFile("c:\\temp\\Icon\\Preview.png")
But I will like to use the relative position when deploy......
get-Item Icon\Preview.png | Resolve-Path -Relative.
it seems the fromFile method overload does not accept .\ as an argument. How Can I go around this to prevent the hard code path.
michael john ocasio