Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6017 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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...
Posted (edited)

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

This topic is 6017 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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