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.

Import a text file using relative paths

Featured Replies

  • Newbies

I've got a script to import data from a text file. It's just one record at any one time, and the script is working fine using the Import Records command and a file path such as file:../ImportThis.txt

However this system will be used by a number of different windows users, and the database won't necessarily always be in the same directory as the import text file.

What I'd like to do is have the text file in the windows user's home directory (c:Documents and SettingsUser Name). This is referred to by the windows environment variable %USERPROFILE%.

So in theory in Filemaker I could then get the script to look at the path %USERPROFILE%/ImportThis.txt

However, I can't seem to get this to work - it cannot find the file. Can filemaker access the windows environment variables in this way? If not then what other options do I have? (The database user's name is not necessarily that of the Windows user - it is the Windows username that I want to use)

Many thanks!

Harry

in FMP9 you should be able to get the User's home Directory with a status function. Include it in the path with a variable.

  • Author
  • Newbies

As easy as that! I thought it should be. Thanks very much.

Harry

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.