Home > Software engineering >  how can I display the folder path in the textbox
how can I display the folder path in the textbox

Time:10-30

$handler_installationfolderlocalinstall_Click = {
  $SelectFolder.ShowDialog() | Out-Null
  Write-Host "You selected $SelectFolder $($SelectFolder.SelectedPath)" -ForegroundColor Yellow
  $textboxinstallfolderlocal.Text = $SelectFolder.FileName
}

I want to display the folder name in a textbox with "FileName" but it doesn't work. Which extension is for folder? or How can I display it?

picture

The path of the folder should be in the textbox as in the lower textbox with the file, but because it is a folder .FileName does not work.

picture2

Thank you for your answers

  • Related