mirror of
https://github.com/mintty/wsltty.git
synced 2025-01-18 12:05:47 +00:00
portable installation supports Unicode folder names
This commit is contained in:
parent
05a439b5b0
commit
d7b4840c92
@ -5,6 +5,7 @@ echo Select target folder in popup dialog ...
|
|||||||
|
|
||||||
set sel="Select folder to place installation of portable wsltty"
|
set sel="Select folder to place installation of portable wsltty"
|
||||||
|
|
||||||
|
chcp 65001 > nul
|
||||||
for /f "usebackq delims=" %%f in (`powershell "(new-object -COM Shell.Application).BrowseForFolder(0, '%sel%', 0, 0).self.path"`) do set f=%%f
|
for /f "usebackq delims=" %%f in (`powershell "(new-object -COM Shell.Application).BrowseForFolder(0, '%sel%', 0, 0).self.path"`) do set f=%%f
|
||||||
set instdir=%f%\wsltty
|
set instdir=%f%\wsltty
|
||||||
if exist %f%\LICENSE.mintty set instdir=%f%
|
if exist %f%\LICENSE.mintty set instdir=%f%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user