Author Topic: Batch/.bat file with del command blocked  (Read 1217 times)

0 Members and 1 Guest are viewing this topic.

Offline gwill1010

  • Newbie
  • *
  • Posts: 2
Batch/.bat file with del command blocked
« 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

Offline DavidR

  • Avast √úberevangelist
  • Certainly Bot
  • *****
  • Posts: 87265
  • No support PMs thanks
Re: Batch/.bat file with del command blocked
« Reply #1 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.
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 22.12.6044 (build 22.12.7758.768) UI 1.0.741/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Offline gwill1010

  • Newbie
  • *
  • Posts: 2
Re: Batch/.bat file with del command blocked
« Reply #2 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.

Offline DavidR

  • Avast √úberevangelist
  • Certainly Bot
  • *****
  • Posts: 87265
  • No support PMs thanks
Re: Batch/.bat file with del command blocked
« Reply #3 on: November 21, 2021, 05:14:34 PM »
You're welcome.
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 22.12.6044 (build 22.12.7758.768) UI 1.0.741/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security