win+R shell:startup 进入配置目录 进入window所在的目录
新建一个 txt文本文档,后更改扩展名.vbs
撰写内容: 其中ubuntu20.04是子系统的名称
set ws=wscript.CreateObject("wscript.shell")
ws.run "wsl -d Ubuntu20.04", 0
win+R shell:startup 进入配置目录 进入window所在的目录
新建一个 txt文本文档,后更改扩展名.vbs
撰写内容: 其中ubuntu20.04是子系统的名称
set ws=wscript.CreateObject("wscript.shell")
ws.run "wsl -d Ubuntu20.04", 0