cancel
Showing results for 
Search instead for 
Did you mean: 
abramojt
Level 8

How do I exclude directories in command line scanner 6.0.3?

I created a batch file that looks like this

SCAN /LOAD c:\vscl603\quickscan.txt /CHECKLIST C:\vscl603\checklist2.txt

quickscan.txt contains the following

/SUB
/MAXFILESIZE 5
/NOBKSEM
/PROGRAM
/UNZIP
/CLEAN
/DEL
/ANALYZE
/MIME
/SECURE
/REPORT QUICKSCANRPT.TXT
/RPTERR
/badlist bad.txt
/APPENDBAD
/EXCLUDE C:\vscl603\EXCLUDED.TXT

EXCLUDED.txt Contains the following

winvnc.exe
datastore.edb
edb*.log
res1.log
res2.log
edb.chk
tmp.edb
*.edb
*.sdb
*.log
*.chk
*.sdb
ntuser.dat
ntuser.log
ntuser.dat*
UsrClass.*
*\network associates\**
*\McAfee\**
aexnsagent.exe
*\i386*
*\windows\$ntuninstall*\**
**\testvirus\

I place the eicar.com test file in the testfile directory but it still scans it and deletes it. What am I missing?

0 Kudos
6 Replies
rackroyd
Level 16

Re: How do I exclude directories in command line scanner 6.0.3?

Please excuse what may be a pedantic question, but your exclude file contains no reference to a directory called 'testfile'. Is that the exact name used ?

Btw, with the use of /SECURE you don't need to also have /PROGRAM /UNZIP /ANALYZE.

/SECURE covers all of those too.

Rgds,

Rob.

0 Kudos
abramojt
Level 8

Re: How do I exclude directories in command line scanner 6.0.3?

Sorry for the typo on my part. I placed the eicar.com test file in the testvirus directory. This direcectory is in my documents folder.

Thank you for the info about /SECURE. I will update my file and remove the other 3

JT

0 Kudos
rackroyd
Level 16

Re: How do I exclude directories in command line scanner 6.0.3?

Paths are not relative it seems, and require a starting drive defined.

*\test is not resolved in the exclude file.

c:\*\test is resolved in the exclude file.

Remove the ** from **\testvirus\, this does nothing.

So, based on the example from your exclude file:

*\network associates\**
*\McAfee\**
*\i386*
*\windows\$ntuninstall*\**
**\testvirus\

becomes

c:\*\network associates\*
c:\*\McAfee\*
c:\*\i386*
c:\*\windows\$ntuninstall*\*
c:\*\testvirus\

etc...

a bit of experimentation should allow you to work out the correct permutation.

Hth,

Rob.

0 Kudos
abramojt
Level 8

Re: How do I exclude directories in command line scanner 6.0.3?

I had tried different ways of writing the exclusions and couldn’t get them to work. I must not have tried the way you wrote them. After correcting the paths, I placed the test virus in all the directories and it successfully skipped them all in a full scan.

Thank you for the help!

JT

0 Kudos
rackroyd
Level 16

Re: How do I exclude directories in command line scanner 6.0.3?

Welcome

0 Kudos
sgrimmel
Level 11

Re: How do I exclude directories in command line scanner 6.0.3?

Now also covered in knowledgeBase article KB69551 - How to set exclusions in VirusScan Command Line Scanner 6.x

HTH

0 Kudos