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.

Let FM know when a Windows program ends...

Featured Replies

Hello,

I have to call a windows programs called "wget.exe" from within filemaker. The program ends by saving its result in a little file that I import in a field in FM. In principle, no problem.

However, in order to let wget do its job, i have included a "pause script for 1 sec" command, so that wget has time and FM imports correctly. I realise now that the speed of wget is different from PC to PC (some running Win98, some Win2000, some are slower, some are faster) which makes the "pause script" command set to a constant time senseless.

Now the questions:

* To be independent of the speed/systems of the various computers I would like to let filemaker check whether or not the called program has finished already, and then continue the script. Does anyone know a way?

* Or: do programs under windows sent "end messages" to the system that can be queried by FM; if yes, how?

* Or: How can FM ask the system whether or not a program is still running?

Thank you in advance!!!!!

Daniel

FMPro 5.0 latest update, Win2000Pro latest update

How about having the program send an event (after it has completed) to FM to run a script in FM. I'm not as familiar with the machanics on the Win side, but this is how we handle this on the Mac side with faxing program, etc.

-bd

I have the same problem as I am using WinBatch to perform a number of functions which I communicate through the use of a temporary file. The only thing that I've come up with is to put your script statement that reads the file (I'm using the Troi file plugin to do this) into a loop and allow ten 1 second pauses. After every pause I test to see what's been returned: the information or an error code. It's not great, but it does work.

  • Author

That is a good workaround.

Thanks a lot!

Daniel

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.