Newbies jtflex Posted August 25, 2005 Newbies Share Posted August 25, 2005 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 More sharing options...
SlimJim Posted August 25, 2005 Share Posted August 25, 2005 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. Link to comment Share on other sites More sharing options...
Newbies jtflex Posted August 26, 2005 Author Newbies Share Posted August 26, 2005 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 More sharing options...
nandito Posted August 29, 2005 Share Posted August 29, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now