您可以從 Microsoft Windows 資源管理器的內容功能表中啟用針對一個或多個檔案之自訂掃描工作的啟動。
要從內容功能表啟用自訂掃描工作的啟動:
Windows 登錄檔編輯器版本 5.0.0
[HKEY_CLASSES_ROOT\Directory\shell\ksws\command]
@="C:\\Temp\\scan.cmd \"%1\""
[HKEY_CLASSES_ROOT\*\shell\ksws\command]
@="C:\\Temp\\scan.cmd \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\ksws]
@="Scan with Kaspersky Security for Windows Server\"
"Icon"="\"C:\\Program Files (x86)\\Kaspersky Lab\\Kaspersky Security for Windows Server\\kavtrayr.dll\",0"
[HKEY_CLASSES_ROOT\Directory\shell\ksws\DefaultIcon]
@="\"C:\\Program Files (x86)\\Kaspersky Lab\\Kaspersky Security for Windows Server\\kavtrayr.dll\",0"
[HKEY_CLASSES_ROOT\*\shell\ksws]
@="Scan with Kaspersky Security for Windows Server\"
"Icon"="\"C:\\Program Files (x86)\\Kaspersky Lab\\Kaspersky Security for Windows Server\\kavtrayr.dll\",0"
[HKEY_CLASSES_ROOT\*\shell\ksws\DefaultIcon]
@="\"C:\\Program Files (x86)\\Kaspersky Lab\\Kaspersky Security for Windows Server\\kavtrayr.dll\",0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Program Files (x86)\\Kaspersky Lab\\Kaspersky Security for Windows Server\\kavshell.exe"="~ RUNASADMIN"
您需要指定 Kaspersky Security for Windows Server 安裝資料夾的實際位置。
scan.cmd
檔案:@echo off
set LOGNAME=%RANDOM%
"C:\Program Files (x86)\Kaspersky Lab\Kaspersky Security for Windows Server\kavshell.exe" scan "%~1" /W:c:\temp\%LOGNAME%.txt
echo Scanning is in progress...
type c:\temp\%LOGNAME%.txt
del c:\temp\%LOGNAME%.txt
timeout /t -1
scan.cmd
檔案必須包含以下資訊:
kavshell.exe
檔案的位置。KAVSHELL SCAN
指令的參數。scan.cmd
檔案複製到 [HKEY_CLASSES_ROOT\Directory\shell\ksws
\command]
REG 檔案中指定的資料夾。範例中使用了 C:\Temp
資料夾。
您無需重新啟動作業系統。
頁面頂部