Scan Multiple Directories Using ECLS.exe

Discussion in 'ESET Smart Security' started by Mahyar, Nov 29, 2009.

Thread Status:
Not open for further replies.
  1. Mahyar

    Mahyar Registered Member

    Joined:
    Nov 28, 2009
    Posts:
    4
    Hi,

    Is there any way to define Multiple addresses (directories) for virus-scanning using ECLS.exe in one session?

    for example:
    ecls.exe /auto C:\folder1 | C:\folder2 | C:\folder3

    Regards
     
  2. Marcos

    Marcos Eset Staff Account

    Joined:
    Nov 22, 2002
    Posts:
    14,456
    What about the following syntax?
    ecls.exe /auto C:\folder1 C:\folder2 C:\folder3
     
  3. Mahyar

    Mahyar Registered Member

    Joined:
    Nov 28, 2009
    Posts:
    4
    Great, it works

    Thanks
     
  4. Mahyar

    Mahyar Registered Member

    Joined:
    Nov 28, 2009
    Posts:
    4
    I found something interesting!
    I'm using a batch file like below for using ECLS.exe:

    Code:
    @ECHO OFF
    "C:\Program Files\ESET\ESET Smart Security\ecls.exe" ^
    /subdir ^
    /aind ^
    "C:\folder1" "C:\folder2"
    when I use above code, folder1 and folder2 will be scanned
    But when I change the last line to ( used batch breaking line symbol '^' ):
    Code:
    "C:\folder1" ^
    "C:\folder2"
    then only folder1 will be scanned and folder2 will not be recognized by ecls.exe according to below error (which is at the end of log file):
    Code:
    [I]'"C:\folder2"' is not recognized as an internal or external command, operable program or batch file[/I]
    What could be the reason?!
     
  5. Brambb

    Brambb Registered Member

    Joined:
    Sep 25, 2006
    Posts:
    411
    Location:
    The Netherlands
    Don't use quotes or try a extra quote before the first folder given (and a extra one at the end to close it).

    /edit:
    Well only way it seems to work is not to use quotes between the folder names. Gotta be in one line for that to work
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.