none
WPF UNC Path RRS feed

  • Question

  • Hi,

    I'm trying to use a label with a hyperlink to open a UNC path. This is what I'm using:

    <Label Name="Link_Label" Margin="96,7,127,-2" Grid.Row="2" Height="25"> <Hyperlink NavigateUri="\\SERVER\FOLDER" > Click here </Hyperlink> </Label>

    $link.add_previewmousedown({[System.Diagnostics.Process]::Start('\\SERVER\FOLDER')})

    This isn't working and I think there's a fairly obvious reason why. Please help, research hasn't found anything. 

    Thank you for any help :) 

    Tuesday, February 5, 2019 3:09 PM

Answers

  • Nevermind, realised I could just use:

    $link.add_previewmousedown({Invoke-Item '\\sandpdc\Engineers\Scripts\Remote Host Inspector'})

    • Marked as answer by I.T Delinquent Tuesday, February 5, 2019 3:22 PM
    Tuesday, February 5, 2019 3:22 PM