コンテキストメニューからオンデマンドスキャンタスクの開始を有効にする

2023年2月20日

ID 194306

Microsoft Windows エクスプローラーのコンテキストメニューから、1 つまたは複数のファイルのオンデマンドスキャンタスクの開始を有効にできます。

コンテキストメニューからオンデマンドスキャンタスクの開始を有効にするには:

  1. REG ファイルを次のように作成します:

    Windows Registry Editor Version 5.0.0

    [HKEY_CLASSES_ROOT\Directory\shell\kess\command]

    @="C:\\Temp\\scan.cmd \"%1\""

    [HKEY_CLASSES_ROOT\*\shell\kess\command]

    @="C:\\Temp\\scan.cmd \"%1\""

    [HKEY_CLASSES_ROOT\Directory\shell\kess]

    @="Scan with Kaspersky Embedded Systems Security\"

    "Icon"="\"C:\\Program Files (x86)\\Kaspersky Lab\\Kaspersky Embedded Systems Security\\kavtrayr.dll\",0"

    [HKEY_CLASSES_ROOT\Directory\shell\kess\DefaultIcon]

    @="\"C:\\Program Files (x86)\\Kaspersky Lab\\Kaspersky Embedded Systems Security\\kavtrayr.dll\",0"

    [HKEY_CLASSES_ROOT\*\shell\kess]

    @="Scan with Kaspersky Embedded Systems Security\"

    "Icon"="\"C:\\Program Files (x86)\\Kaspersky Lab\\Kaspersky Embedded Systems Security\\kavtrayr.dll\",0"

    [HKEY_CLASSES_ROOT\*\shell\kess\DefaultIcon]
    @="\"C:\\Program Files (x86)\\Kaspersky Lab\\Kaspersky Embedded Systems Security\\kavtrayr.dll\",0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]

    "C:\\Program Files (x86)\\Kaspersky Lab\\Kaspersky Embedded Systems Security\\kavshell.exe"="~ RUNASADMIN"

    Kaspersky Embedded Systems Security インストールフォルダーの実際の場所を指定する必要があります。

  2. scan.cmd ファイルを次の内容で作成します:

    @echo off
    set LOGNAME=%RANDOM%

    "C:\Program Files (x86)\Kaspersky Lab\Kaspersky Embedded Systems Security\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 コマンドのパラメータ。
    • タスクが完了した時にコンソールウィンドウを閉じるためのタイムアウト値。
  3. scan.cmd ファイルを、REG ファイル [HKEY_CLASSES_ROOT\Directory\shell\kess\command] で指定されたフォルダーにコピーします。

    例では、C:\Temp フォルダーを使用しています。

オペレーティングシステムを再起動する必要はありません。

この記事はお役に立ちましたか?
改善できる点がありましたらお聞かせください。
フィードバックをいただき、ありがとうございました。改善に向けて取り組んでまいります。
フィードバックをいただき、ありがとうございました。改善に向けて取り組んでまいります。