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.

Executing a windows batch file

Featured Replies

  • Newbies

I've a need to execute a batch file from within FileMaker Pro 9. using 'Send Event' method I'm able to do this. However facing some issues in specifying the file path for the .bat file.

For example I need to dynamically create the batch file and execute it.

I'm attaching a sample project which explains my needs.

The catalog I create (sample) contains two fields.

ID, Path. ID is autogenerated number. Path is a calculation field which will hold DOS command to create folder.

I have a script which will export the DOS commands (the contents of the Path field) to a btach file. then I need to execute the batch file.

Please note that there already exists a folder named 'Pictures' in parallel to the database catalog. So I've written the script in such a way that the batch file will be created under this folder.

This is working well. However I want the folders to be created by executing the batch file (the folders will be created in parallel where the batch file resides)

Using the 'Send Event' command if I explicily point the location of the bat file it works fine and creates the folders. However if I try to copy this catalog and 'Pictures' folder in another directory I don't see any folders created. However I can see the batch file getting created.

(if what I've explained is confusing please have a look at the attached zip file)

looking forward to your replies.........

BatDemo.zip

  • 1 month later...

I am dealing with a similar problem, but your demo has given me an idea.

1. Set the value of a text field to be the complete contents of the batch file.

2. Then, set the filename of the batch file using this Variable Filenames

I hope that helps,

Bill D.

One additional item, each line in the batch file needs to be a separate record.

Edited by Guest
Missed a step

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.