Jump to content

CMD to Batch files & parameters


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

Recommended Posts

  • Newbies

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

Link to comment
Share on other sites

  • Newbies

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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