1.单击「开始」菜单→运行→输入msconfig /6→同时按下Alt+D→确定 2.复制到文本文档,另存为S.bat @echo off&title 文件定位&color 2&wmic process get ExecutablePathP.log&write P.log :S tasklist /svc&set /p C=文件名(图像名):&tasklist |find /i %C% nul||goto H for /f tokens=2 delims== %%i in ( 'wmic process where name^=%C% get ExecutablePath /value' ) do (echo 绝对路径: %%i&explorer /select,%%i&pause&goto S) :H echo 正在搜索... for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (if exist %%a: ul ( for /f delims= %%b in ('dir /a-d /s /b %%a:*%C% 2^nul') do ( if /i %%~nxb equ %C% (echo.绝对路径: %%b&explorer /select,%%b)))) pause&goto S 3.复制到文本文档,另存为H.bat @echo off&title 进程相关服务&color 2 :S tasklist/svc&set /p S=服务名称: for /f tokens=2 delims== %%i in ('sc GetDisplayName %S%')do (echo 显示名称:%%i) services.msc&pause&goto S