Remove all "auto.rsc" files via script

Hi all,

I’m interesting in remove all files that have the named finished by “auto.rsc” using a script.

I tried to use the * as a name mask but it didn’t work.

I tried the follow forms:

/file remove “*auto.rsc”
:foreach i in=[/file find name=“*auto.rsc”] do=[/file remove $i]

How can I solve this?

Thanks in advance

Fabrício

:foreach i in=[/file find] do={:if ([:typeof [:find [/file get $i name] "auto.rsc"]]!="nil") do={/file remove $i}}

thanks ayufan, it’s the solution!

best regards!

Thanks !