· 1 min read
在 WSL 中调用 Windows 可执行文件(以 VS Code 为例)
在WSL内执行windows exe文件,以Visual Code为例子
0x00 前言
常见的需求,需要在命令行中使用visual code打开当前文件夹
0x01 正文
在WSL中执行windows可执行文件是可以直接执行的,其内部也正确的可以显示所有windows Path所有存在的可执行文件。
# Execute powershell
$ powershell.exe
PS C:\Users\[local user]\Documents>
PS C:\Users\[local user]\Documents> exit
$
# Execute Visual Code
$ code ./
# then, in nomoral will be open the visual code by current
0x02 结语
至此,就完成了在WSL中执行windows exe程序。