get a folder path from the explorer menu to a powershell variable

后端 未结 5 836
忘掉有多难
忘掉有多难 2021-01-19 04:42

is it possible to open a explorer window from powershell and store the path selected in the explorer, to a variable?

to open explorer window from powershell

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-19 05:12

    Just wanted to post an addendum, I believe there is a pipe | missing from in-between:

    [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms")
    

    and:

    Out-Null
    

提交回复
热议问题