Path Chose manually with a File Browser

Welcome Forums General PowerShell Q&A Path Chose manually with a File Browser

Viewing 1 reply thread
  • Author
    Posts
    • #282535
      Participant
      Topics: 1
      Replies: 0
      Points: 11
      Rank: Member

      Hello,

      I’m new here and I’m trying something with Powershell:

      Instead of writing my $Path I’d like to create a $Path where I could search manually a folder using the file browser,

      When launching my script I would search the location and the script would proceed instead of modifying the path each time,

      Regards,

       

    • #282565
      Participant
      Topics: 4
      Replies: 425
      Points: 748
      Helping Hand
      Rank: Major Contributor

      Welcome to the forum.  Here’s a basic example.

      The OpenFileDialog class several options, so check the Microsoft documentation for more details such as using multi-select and setting an initial directory.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.