之前都好好的,突然就不行了,点击快捷方式或直接程序右击管理员运行均没有任何反应。

 

处理方式(确认使用此解决办法可以看下方红字部分,是否也有类似提示):

   创建null服务。(启发站点:shellvon的回复):https://github.com/microsoft/vscode/issues/185298

步骤

1、要确保 C:\Windows\System32\drivers\null.sys 这个null.sys文件存在,否则服务也启动不成功

2、若不存在,本机win11下载从此链接处找到:https://blog.csdn.net/m0_55000378/article/details/125788077 , 其它系统版本或此链接下载后不行,需要自行网上搜索或找一台相同版本电脑拷贝

  相关链接(未验证,因为提供版本只到win10):https://www.exefiles.com/zh-cn/sys/null-sys/

3、cmd执行 sc query null 提示指定的服务未安装;

4、则执行创建命令  sc create null binPath= C:\Windows\System32\drivers\null.sys type= kernel start= auto error= normal)

  1. 運行 sc start null

打開VS CODE 試試吧..

1

2

3

4

5

6

7

8

9

10

C:\Users\Administrator>sc query null

[SC] EnumQueryServicesStatus:OpenService 失败 1060:

 

指定的服务未安装。

 

 

C:\Users\Administrator>sc create null binPath= C:\Windows\System32\drivers\null.sys type= kernel start= auto error= normal

[SC] CreateService 成功

 

C:\Users\Administrator>sc start null