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

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

Recommended Posts

Posted

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

Posted

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

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 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.