scripting with for each loop

Hey topic hopper!

http://forum.mikrotik.com/t/syntax-to-wildcard-the-rest-of-path/142735/1

:set $filename [/file get $file name];
/tool fetch ...................dst-path="routeros-mipsbe-6.47.2.npk" keep-result=yes



:set $filename [/file get $file name];
/tool fetch .............dst-path="$filename keep-result=yes

You don’t know in advance what the source filename is so you also don’t know the destination name.