Community discussions

MikroTik App
 
pedja
Long time Member
Long time Member
Topic Author
Posts: 684
Joined: Sat Feb 26, 2005 5:37 am

How to rename file from script?

Wed Dec 15, 2010 12:13 pm

I need to rename file within Mikrotik. I know its name.
Manual shows no hints how to do it.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7038
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How to rename file from script?

Wed Dec 15, 2010 1:21 pm

It is not possible to rename files
 
planetcaravan
Member Candidate
Member Candidate
Posts: 267
Joined: Tue Aug 25, 2009 5:33 pm

Re: How to rename file from script?

Sat Oct 20, 2012 12:18 pm

Still having this problem in Mikrotik?
 
noib
Member Candidate
Member Candidate
Posts: 291
Joined: Fri Jan 25, 2013 6:04 pm
Location: France
Contact:

Re: How to rename file from script?

Thu Aug 08, 2013 7:18 pm

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 

Who is online

Users browsing this forum: ko00000000001, own3r1138 and 21 guests