Avast WEBforum

Consumer Products => Avast One => Topic started by: gwill1010 on November 18, 2021, 03:15:39 PM

Title: Batch/.bat file with del command blocked
Post by: gwill1010 on November 18, 2021, 03:15:39 PM
I have a batch file that contains the below command that is being blocked.  I want run it daily to clean out my security cam files that go to this ftp folder.
I've tried adding exceptions, but nothing seems to work.  Thanks.

forfiles /p "C:\Users\me\documents\ftp" /s /m *.jpg /c "cmd /c Del @path" /d -5
Title: Re: Batch/.bat file with del command blocked
Post by: DavidR on November 18, 2021, 03:53:32 PM
You don't say what Avast Program and version/build that you have ?

I can only assume that you have the Avast Ransomware Shield (RS) component enabled (and that might be blocking it) ?
I don't use the RS component (haven't got it installed), so can't speak from personal experience.

That folder might be included in the folders protected by the RS, in the RS settings you may be able to either exclude that folder from protection or add an exception for the command file.
Title: Re: Batch/.bat file with del command blocked
Post by: gwill1010 on November 21, 2021, 05:07:10 PM
Avast One Essential free version
21.9.2494 (build 21.9.6698.704)


Thanks very much, I see that I can exclude folders.  & I cam move my ftp storage location.
Title: Re: Batch/.bat file with del command blocked
Post by: DavidR on November 21, 2021, 05:14:34 PM
You're welcome.