Last active
May 27, 2022 17:33
-
-
Save Malix-Labs/4bb2984cbd8feb308aef6039c28d8c55 to your computer and use it in GitHub Desktop.
Windows Folder Browser - COM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setlocal | |
set "psCommand="(new-object -COM 'Shell.Application')^.BrowseForFolder(0,'Please choose a folder.',0,0).self.path"" | |
for /f "usebackq delims=" %%I in (`powershell %psCommand%`) do set "folder=%%I" | |
endlocal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source