Sign in to follow this  
isellgum

acmd.exe usage

Recommended Posts

I'm trying to make a2cmd scan only the directories specified but it continues to scan prgram files directory. I have tried using /q and /s but it still scans prgram files. Is there a way to make it only scan the requested directories ???? Thanks

ECHO EXTRACTING.....

7z x a2cmd.zip -o%e%\a2 -aoa

CLS

ECHO EXTRACTION COMPLETE

ECHO.

start /wait a2\a2cmd /f=%HOMEDRIVE%, %WINDIR%, %WINDIR%\system, %WINDIR%\system32, %WINDIR%\System32\dllcache, %WINDIR%\system32\drivers,%appdata% /t /c /log=%el%\a2cmd.log /x="exe, com, scr, bat, pif, dll, tmp, dat" /d

del a2cmd.zip>NUL

rd /s /q a2>NUL

Share this post


Link to post
Share on other sites

You have %HOMEDRIVE% defined as one of the locations to scan. This corresponds to the driver Windows is installed on (usually C:). So the command line scanner will scan the whole drive.

Share this post


Link to post
Share on other sites

I guess the more accurate question is how do I make it not scan sub directories?

Hi isellgum, welcome to the forum

At this moment how it's developed you can create a White List file that includes a list of "unneeded" sub-folders that will be ignored by the scan

and use the parameter e.g.: /WL=SubFoldersToIgnore.txt

It works. It may be not as convenient as required, if there are too many sub-folders under the main directory, but is still helpful a lot when there are many sub-sub-folders further in the directory tree.

It is probably indeed a good idea for the Wish List to have a special additional switch (parameter)

Please ask if you have questions. I prepared simple example with the images and the content of such whitelist file

My regards

p.s. and/or you can look into this recent case ... not necessarily what you are asking for but it touches whitlisting use by CLS (Command Line Scanner)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.