Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows services 从Windows exe调用WSL2 Linux系统调用_Windows Services_Windows Subsystem For Linux_Wsl 2 - Fatal编程技术网

Windows services 从Windows exe调用WSL2 Linux系统调用

Windows services 从Windows exe调用WSL2 Linux系统调用,windows-services,windows-subsystem-for-linux,wsl-2,Windows Services,Windows Subsystem For Linux,Wsl 2,我有一个为用户配置操作系统的Windows服务。如果用户安装了WSL2,我想将他们的Linux环境配置为也使用可执行文件。如果我的Windows服务可以调用Linux系统,我就可以做到这一点 有人知道怎么做吗 否则,我的Windows进程能否启动WSL2 Linux进程

我有一个为用户配置操作系统的Windows服务。如果用户安装了WSL2,我想将他们的Linux环境配置为也使用可执行文件。如果我的Windows服务可以调用Linux系统,我就可以做到这一点

有人知道怎么做吗

否则,我的Windows进程能否启动WSL2 Linux进程