Win32 app can't open file on WSL file system - potential causes? #13409
Unanswered
Joshua-Schroijen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am facing a weird problem. In my corporate environment we have a proprietary Win32 CLI program (which I can't disclose a lot about and is also a black box to us) that I would like to invoke like this from inside WSL2:
This doesn't work:
foosays it can't open\\wsl.localhost\Ubuntu\tmp\bar.bazHowever, if I copy
bar.bazto a different network share and executefoo.execan work with the file just fine.I can also work with
\\wsl.localhost\Ubuntu\tmp\bar.bazusing different Win32 applications such as Notepad without any issues.Finally, creating a symbolic link on the
C:drive or mapping\\wsl.localhost\Ubuntuto a drive letter doesn't help.So to recap:
I was wondering whether anyone has some general knowledge on why Win32 programs could face these challenges and how this could be worked around
I thought about implementing a sort of "copy on read" scheme to copy the needed file to the Windows file system before invoking
foo.exebut this could incur too high a performance penalty.Thanks so much in advance for your input!
Beta Was this translation helpful? Give feedback.
All reactions