Kris M Posted October 7, 2009 Posted October 7, 2009 I am in the darkness of trying to use Send Event to trigger a .bat file and I am humbly begging for a torch. Here is what I am trying to do.. I have get_filelist.bat file located at Server Namec$Program FilesFileMakerFileMaker ServerDataScripts that triggers another .bat file and performs some file manipulation on the server. get_filelist.bat works perfectly when i remote desktop into server and trigger the .bat file or trigger it via server scheduled event. The last step of get_filelist.bat is to produce Server Namec$Program FilesFileMakerFileMaker ServerDataDocumentsfilelist.xml. I have a script in an .fp7 file served on the same FMP server called get_filelist that has one line...Send Event("aevt";"odoc"; "filewin://Server NameD:Program FilesFileMakerFileMaker ServerDataScriptsget_filelist.bat". When executed it does not produce Server Namec$Program FilesFileMakerFileMaker ServerDataDocumentsfilelist.xml and returns no error. I want to be able to trigger the get_filelist script from a button click on a layout AND from the server scheduled events. I am thinking that its nothing more than getting the third parameter in Send Event (1;2;3) correct. Flashlight, torch, open the shades, anyone? TIA K
IdealData Posted October 7, 2009 Posted October 7, 2009 See if this one helps http://fmforums.com/forum/showtopic.php?tid/210084/post/335954/hl/%22send+event%22/fromsearch/1/#335954
Kris M Posted October 7, 2009 Author Posted October 7, 2009 i had read through that post before posting my question. If their is a solution in there please enlighten me in detail cause i dont see it
aholtzapfel Posted October 7, 2009 Posted October 7, 2009 Not sure I follow exactly what your doing but this might help you a little. Send Event sends a text string to your "run line" not the "command line". I suggest you start by typeing what you want executed into the run line. (Start menu > Run... or on vista type it into the search box in the start menu) once you get the command to run there, take that and use it for your send event command.
Recommended Posts
This topic is 5526 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