March 21, 201114 yr 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
March 21, 201114 yr Author 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
Create an account or sign in to comment