Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Rename a file from within FMP 5/6


Recommended Posts

Hi, does anyone know of a way to rename a file from within a FMP 5/6 script? (I am not referring to renaming an FMP data file, just a random file, such as a text file.)


Thanks in advance.

Link to comment
Share on other sites



I see you're using Windows. Know DOS commands?


If you use Send Message, and specify that the message goes to "cmd", and the text of the message is a DOS command, you are essentially performing command line instructions from within FileMaker.



If you also have Macs, use Perform AppleScript and use "do script" to issue command line instrux as you would issue them from the Mac Terminal.

Link to comment
Share on other sites

Can you be a little more specific? When I look at the "Send Message" script step in FMP 6, I see a dropdown box "Send the -- message". The options are "open document/application" and "print document".

Then there are three radio buttons: file, field value and text. I don't see where I can both choose "CMD" and enter text data.


Thanks for your response.

Link to comment
Share on other sites

I think I got it. I had to play around with CMD a bit before I figured it out. I used the text radio button with the text:

CMD /C "RENAME {fname1} {fname2}"

It did not work without the /C


Thanks for your help.

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Terms of Use