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

calling BAT files and/or Windows Script

Featured Replies

Hi,

I'm using FileMaker 6 on Windows XP.

1. Is it possible to create script that calls a BAT file or Windows Script ?

2. How the BAT file or Windows Script can retun a string back to FileMaker?

(the result of the execution - failure code or string if succesful)

3.How do I store the returned value in a FileMaker field?

If possible, could you please post some sample scripts?

Thank you for the help!

Yes, use the Send Message script step with the path to your batch file and any parameters you may need in the Text box.

You can have the batch file populate a text file with the return string and Import the result into a global field in FM. Make sure the text file is deleted at the beginning of the batch script, and have FM loop until the import is successful or a global number field, functioning as a loop counter, exceeds a particular value, e.g.

Allow User Abort [Off]

Set Error Capture [On]

Set Field [gnum, 0]

Send Message

Loop

Import Records [Restore, No dialog, somefile.txt]

Exit Loop If [not Status(CurrentError) or gnum = 10000]

Set Field [gnum, gnum + 1]

End Loop

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.