Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- bash -lic 'ffmpeg -i "%1" output.avi'
- C:some pathfile.avi: Protocol not found
- E:myfilesapp1datafile.csv
- "/mnt/e/myfiles/app1/data/file.csv"
- @echo OFF
- set "variable=E:myfilesapp1datafile.csv"
- set "drive=%variable:~0,1%"
- set variable=%variable:~2%
- set "variable=%variable:=/%"
- if %drive%==A set "drive=a"
- if %drive%==B set "drive=b"
- if %drive%==C set "drive=c"
- if %drive%==D set "drive=d"
- if %drive%==E set "drive=e"
- if %drive%==F set "drive=f"
- if %drive%==G set "drive=g"
- if %drive%==H set "drive=h"
- if %drive%==I set "drive=i"
- if %drive%==J set "drive=j"
- if %drive%==K set "drive=k"
- if %drive%==L set "drive=l"
- if %drive%==M set "drive=m"
- if %drive%==N set "drive=n"
- if %drive%==O set "drive=o"
- if %drive%==P set "drive=p"
- if %drive%==Q set "drive=q"
- if %drive%==R set "drive=r"
- if %drive%==S set "drive=s"
- if %drive%==T set "drive=t"
- if %drive%==U set "drive=u"
- if %drive%==V set "drive=v"
- if %drive%==W set "drive=w"
- if %drive%==X set "drive=x"
- if %drive%==Y set "drive=y"
- if %drive%==Z set "drive=z"
- set "variable=/mnt/%drive%%variable%"
- echo "%variable%"
- @echo ON
- $ echo $0
- /bin/bash
- $ which wslpath
- /bin/wslpath
- $ wslpath -a 'C:\aaa\bbb\ccc\foo.zip'
- /mnt/c/aaa/bbb/ccc/foo.zip
- >>> wsl wslpath -a 'C:\aaa\bbb\ccc\foo.zip'
- /mnt/c/aaa/bbb/ccc/foo.zip
- -a force result to absolute path format
- -u translate from a Windows path to a WSL path (default)
- -w translate from a WSL path to a Windows path
- -m translate from a WSL path to a Windows path, with ‘/’ instead of ‘\’
Add Comment
Please, Sign In to add comment