Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Renames a file or folder without user interface.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Files | 2.8 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Path | The native path to the file or folder to be renamed. | "/Users/John/Desktop/test.txt" |
NewName | The new name. | "testfile.txt" |
Returns OK or error message.
Rename file on Windows with full path:
MBS( "Files.RenameFile"; "\\FileServer\Dokumente\VK\123456\RG249388345.pdf" ; "\\FileServer\Dokumente\VK\123456\Rechnung_249388345.pdf" )
Rename file on OS X:
MBS( "Files.RenameFile"; "/Users/cs/Desktop/test"; "Hello World, just a test!" )
Rename on Windows:
MBS( "Files.RenameFile"; "C:\Users\Administrator\Desktop\alt.fmp12"; "neu.fmp12")
Created 18th August 2014, last changed 5th August 2017
Files.ReadPNG - Files.ResolveAlias
Feedback: Report problem or ask question.