jimlongo Posted March 21, 2011 Posted March 21, 2011 I've seen this sort of question before (but the answer still eludes me), so excuse me for asking a very similar question. I have a backup script I've written for a legacy database. Don't ask me why but their database is in 3 files. I plan that on exit each of the files creates a backup which gets emailed to someone as an off-site backup. To reduce clutter I want the backups to go into a folder on the users desktop called "DB_Backups" This works fine on my Mac, but not on the users Windows computer. They get the error "could not create the file . . ." Set Variable [$filename ; Value: "backup.fp7" ] Set Variable [$filepath ; Value : Get(DesktopPath) ] Save a Copy as [$filepath/DB_Backups/$filename ; copy ] I've read in other threads that the slash is already part of Get(DesktopPath). if I remove it, how should I define the path? Thanks, jim
jimlongo Posted March 21, 2011 Author Posted March 21, 2011 Case ( Abs ( Get ( SystemPlatform )) = 1; "filemac:"; "filewin:" ) & Get ( DesktopPath ) & "DB_Backkups/backup.fp7" This also works on my Mac . . . should it work for Windows users? Thanks, jim
Recommended Posts
This topic is 4996 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