access wsl2 files from windows code example
Example 1: wsl2 access folder from windows
Open File Explorer.
Type \\wsl$ in the address bar.
My distro shows up and click on it and you can see the file system
Example 2: windows how to access wsl from explorer
from explorer \\wsl$
from powershell: cd \\wsl$\<DistributionName>
in my case DistributionName is Ubuntu20.04
Example 3: access wsl files from windows
C:\Users\%USERNAME%\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\