December 16, 200520 yr 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?!
December 16, 200520 yr 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.
December 17, 200520 yr 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
December 17, 200520 yr 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.
Create an account or sign in to comment