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

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

Recommended Posts

  • Newbies
Posted

I am trying to have FM use scripting to start a batch file with a paramater. I'm using a calculated field in FM that looks like this:

"cmd /c c:play.bat test"

I call this calculated field using Send Message in a script. However, my batch file doesn't run.

If I use it in the command shell in Windows it works fine.

Any ideas of what I did wrong?

Thanks,

Joe

Posted

Does the cmd run? try using /k instead of /c so that you can see what messages you get from the OS it may enable you to work out what is failing.

  • Newbies
Posted

Thanks for the tip.

I did figure it out. I can run the batch file from the Run command using C:play.bat. But to send it through the CMD, I needed to use C:play.bat. Basically a error in my batch file.

Thanks again.

Joe

Posted

This post is very similar to a question I have. What I need is to include part of the contents of the .bat file to be derived from fields in Filemaker: for example, my play.bat file would contain something like:

copy "This value from FM".jpg "this other value from FM"

In essence I would need FM to write the bat file. Can this be done? Any help is appreciated.

Thanks,

Nandito

This topic is 7028 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.