Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Relative filepaths - Mac vs Windows

Featured Replies

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

  • 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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.