Riley Waugh Posted March 20, 2010 Posted March 20, 2010 (edited) I want to create a Runtime database that will be put on unknown desktop. Have a script to create a copy of the database on closing. I cannot seem to get the file path correct. I have: SetVariable [$Path;Value:"Filewin:" & Get ( FileMakerPath )& "Backup/" & $BackupName] Save a Copy as [$Path; compacted] where the folder "Backup" resides in the runtime folder. $BackupName is set in a previous step and works fin ewhre I set the path 'manually'. I cannot figure out making the Get (FilemakerPath) part to work. Where am I going wrong? Also, is there a rather simple way within Filemaker to script the creation of the folder "Backup"? Edited March 20, 2010 by Guest
TheTominator Posted March 20, 2010 Posted March 20, 2010 (edited) Use simply "file:Backup/" & $BackupName instead. Using filewin: means an absolute path starting with C: (or whatever). "file:" is cross-platform and is a relative path starting with the current directory where the datbase file resides. For your purposes, using the "file:" method is much simpler. Edited March 20, 2010 by Guest
TheTominator Posted March 20, 2010 Posted March 20, 2010 Also, is there a rather simple way within Filemaker to script the creation of the folder "Backup"? No, not within FileMaker. You can ask a Windows program to do it using the Send DDE Execute, or Send Event script steps, or Go To Field[select/Perform] on a container field with a ref to a windows program/script. Or use a plug-in that provides this capability.
Riley Waugh Posted March 20, 2010 Author Posted March 20, 2010 Thanks a lot for the quick and helpful replies.
Recommended Posts
This topic is 5363 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 accountSign in
Already have an account? Sign in here.
Sign In Now