In this Superuser question, I'm looking for a way to make the following work:
find DLL.dll -exec /mnt/c/.../Windows_command {} \; Yes, I'm indeed trying to launch a Windows command inside a WSL.
To my surprise, this has worked before, but now it's not anymore (hence the Superuser question), the corresponding bounty explains how much I'd like this to work đ
Here I would like to talk about the background of this whole thing: I always thought of WSL as being a real "Linux"-emulator on a Windows machine, which was capable of launching UNIX commands on files on a Windows computer, nothing more, but apparently there is more:
The following WSL command is working:
/mnt/c/Windows/System32/winver.exe (As most of you might know, winver is a command, used to know the Windows version of a computer)
Not only does it "work", it also launches exactly the same Windows dialogbox as if the command was launched from Windows commandline.
The following Windows command is working:
C:\Development\util>sigcheck.exe C:\...\abseil_dll.dll From inside the directory of the abseil_dll.dll file, the following WSL command is also working:
/mnt/c/Development/util/sigcheck.exe abseil_dll.dll However, the following WSL command is not working:
/mnt/c/Development/util/sigcheck.exe /mnt/c/.../abseil_dll.dll It looks as if Windows commandline commands can be launched from within a WSL environment, but they can't handle the WSL directory structure.
I've heard that this might be due to a "mounting configuration": if the result of mount | grep "/mnt/c" mentions drvfs, it would work, but as it mentions 9p, this "explains" why it doesn't.
Some surfing tells me that before, WSL mounting was done according to drvfs, which "allowed" so-called interoperability, while now it's done according to 9p, which does not allow this?
This would mean such a serious degradation of WSL features, I can't imagine this to be true.
There also seems to be the possibility to configure the WSL, where the [interop] chapter, described here, might be useful.
... unfortunately this seems not to be true, as you can see from the following /etc/wsl.conf excerpt (WSL command):
cat /etc/wsl.conf ... [interop] enabled = true appendWindowsPath = true Can anyone shed some light on this matter?
Thanks in advance
wslpath?/mnt/c/Development/util/sigcheck.exe $(wslpath -w /mnt/c/.../abseil_dll.dll)findcommand, and I'd like to keep that as it was working before.