Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6918 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I want to make a script that will backup the database [save A Copy As] with a press of a button to a given location. I want to name the saved file BackUp_$TodayName.fp7, where $TodayName gives for example "Thursday".

Is there anyway that it can be done?!

Posted

Define a variable $filename as the complete pathname of the file, for example,

Set Variable[$filename;Value;"filewin:/C:/Path/BackUp_" & $TodayName" & ".fp7"]

and then use Save a Copy as

Save a Copy as["$filename";copy]

Here fill in the location between filewin:/ and BackUp_. In the Save a Copy as, when you specify the Output File simply type $filename into the Output File Path List.

Posted

Jim--

The Set Variable step is a FM8 feature. Ted's profile lists him as using 7, so, your answer won't help him.

I know of no way to accomplish Ted's goal without some plug-in. Please correct me if I'm wrong!

David

Posted

You are right about variables being FM8 feature, however, the use of $TodayName in the formula made me think that FM8 was being used despite the FM7 declaration in the profile.

I do not know any way to achieve this in FM7 without external help, either an OS script or a plug-in.

This topic is 6918 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.