網(wǎng)站建設(shè)公司 北京百度瀏覽器網(wǎng)頁
文章目錄
- Windows 通過服務(wù)名稱搜索軟件啟動路徑啟動軟件
Windows 通過服務(wù)名稱搜索軟件啟動路徑啟動軟件
注意:QQ管家和360安全,正常情況下使用
taskkill
無法停止,因為在安全設(shè)置中有個“自保護(hù)”,正常情況下會默認(rèn)勾選上,這樣就無法使用taskkill
關(guān)閉,取消勾選之后可以使用taskkill
關(guān)閉
@echo off
rem "關(guān)閉服務(wù)"
taskkill /f /t /im QQPCTray.exesetlocal enabledelayedexpansion
rem 指定待搜索的文件
set "FileName=QQPCTray.exe"
rem 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:\ (pushd %%a:\for /r %%b in (*%FileName%) do (if /i "%%~nxb" equ "%FileName%" (rem echo,%%bset filePth=%%becho !filePth!rem "倒計時"timeout /nobreak /t 3rem "截取倒數(shù)13位之前的內(nèi)容"set QQPath=!filePth:~,-13!echo !QQPath!rem "啟動軟件"start /d "!QQPath!" QQPCTray.exe))popd)
)