Page 1 of 1

How to rename file from script?

Posted: Wed Dec 15, 2010 12:13 pm
by pedja
I need to rename file within Mikrotik. I know its name.
Manual shows no hints how to do it.

Re: How to rename file from script?

Posted: Wed Dec 15, 2010 1:21 pm
by mrz
It is not possible to rename files

Re: How to rename file from script?

Posted: Sat Oct 20, 2012 12:18 pm
by planetcaravan
Still having this problem in Mikrotik?

Re: How to rename file from script?

Posted: Thu Aug 08, 2013 7:18 pm
by noib
Old post, but it has a good score on google so maybe it will help someone; the workaround i use to rename a file is to copy it via "fetch" and then remove it.

To rename fileA to fileB:
/tool fetch address=127.0.0.1 mode=ftp user=[USER] password=[PASS] src-path=fileA dst-path=fileB
/file remove fileA