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.

Triggering a FM Export

Featured Replies

I am using a FM database as an data enrichment system within a MS eCommerce environment. One of the things I need to do is export updates on a nightly basis. On top of this whole thing, we will have a "general manager" controlling the imports, via ODBC and export updates. From what I can tell there may be two options: 1) write a VBScript to actually export the data itself, 2) write a VBScript to trigger a FM export script.

Any ideas on what is the best solution? I am not very familiar with VBScripting.

Thanks,

Open notepad and save the following as "filename.VBS", changing the Path, UserName,Password, and ScriptName.

Set WshShell = WScript.CreateObject("WScript.Shell")

Set objFM = WScript.CreateObject ("FMPRO.Application")

    Set objFMfiles = objFM.Documents.Open("C:yourpathyourfile.fp7","username","password") 'open FM file

    objFM.Visible = True ' show FMPro                      

    objFMfiles.DoFMScript ("NameOfYourScript") ' call this FM script

WScript.DisconnectObject(objFM)

WScript.Quit(1)

But there may be an even easier solution....

Have windows task scheduler open a filemaker file and set the export script to run when the file is opened. No vbs needed. :smile2:

  • Author

Thanks.

The execute script on open is something that a friend suggested. :

  • 1 month later...

using a VBscript gives you more error trapping and handling options though. Like being able to log the fact that the FM file can not be found or anything like that.

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.