Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Relative location of a file

$
0
0

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


Viewing all articles
Browse latest Browse all 15028

Trending Articles