Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to copy paste windows paths to wsl

# Windows Build 17046 [1] contains new wslpath utility that can translate paths 
# from/to WSL/Windows. 
$ echo $0
>>/bin/bash

$ which wslpath
/bin/wslpath

$ wslpath -a 'C:aaabbcccfoo.zip'
/mnt/c/aaa/bbb/ccc/foo.zip

# You can call wslpath from Powershell on Windows:
$ wsl wslpath -a 'C:aaabbcccfoo.zip'
/mnt/c/aaa/bbb/ccc/foo.zip
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #copy #paste #windows #paths #wsl
ADD COMMENT
Topic
Name
2+4 =