Associate with... WSL: escape slashes or replace to backslashes

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
quazi
Junior Member
Junior Member
Posts: 16
Joined: 2021-05-12, 10:05 UTC

Associate with... WSL: escape slashes or replace to backslashes

Post by *quazi »

Is there any way to escape slashes in path or replace it to backslashes or even use %N instead of fullname (aka %1) in associations?
As example I want to associate .sh with

Code: Select all

Shell Script (wt.exe -d . -p "Ubuntu-20.04" bash -c '$(wslpath -u "%1")')
wslpath can't convert urls because they missed as not escaped with additional slash

Image: https://i.imgur.com/oiVeoSa.png
Post Reply