wslp
is a command-line tool to convert Windows paths to WSL paths and vice versa.
git clone https://github.com/h2cone/wslp.git
cd wslp
cargo install --path .
To convert Windows paths to WSL paths:
wslp 'x:\path\to\file'
Output:
/mnt/x/path/to/file
To convert WSL paths to Windows paths, use the --reverse or -r flag:
wslp -r /mnt/x/path/to/file
Output:
x:\path\to\file