-
Notifications
You must be signed in to change notification settings - Fork 822
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access files in WSL filesystem by exe in Windows' filesystem #7691
Comments
That |
Yes, it works. But actually, I'm using CMake to compile it. The path sent to compiler is generated by CMake and hard to modify it. |
CMake where? |
|
CMake in Linux environment can access ~/main.c without any path conversion. If the CMake in Windows environment you need something like in VSCode or ssh. |
Yes, I built the project successfully. Thank you! |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Version
Microsoft Windows [Version 10.0.19043.1348]
WSL Version
Kernel Version
5.4.72
Distro Version
Ubuntu 20.04
Other Software
notepad.exe or any exe located on Windows
Repro Steps
wsl.exe
echo 'int main() { return 0; }' > ~/main.c
cd ~ && notepad.exe ~/main.c
, OKcd /mnt/c && notepad.exe ~/main.c
, notepad can't find the fileExpected Behavior
The exe files (in Windows) will work fine when the current working directory is on both Windows and WSL.
Actual Behavior
Only the working directory is on Linux that exe files can find the files in WSL's filesystem.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: