Loading Igor from a Batch File
Wed, 12/20/2017 - 06:11 am
I'd like to create a windows batch file to do two things:
1) Launch Igor and open a particular experiment file.
2) Run a command in this experiment file.
So far I have this:
"C:\Program Files (x86)\Wavemetrics\Igor Pro Folder\Igor64.exe" "E:\Documents\Igor_Experiments\Experiment.pxp" "C:\Program Files (x86)\Wavemetrics\Igor Pro Folder\Igor64.exe" /X "runFunction()"
When I run this file it launches Igor and opens the specified experiment but it doesn't run the function. Once I close the experiment file it immediately opens another instance of Igor and tries to run the command but can't because that command does not exist in the blank experiment file. Is there a way to get this to work? I know that I could put the command in the procedure window before any of the functions and it would be run when Igor launches but ideally I'd like to have two batch files for the users of my program to work with: one that would do what I've talked about above and one that would only open the experiment without running the function.
Any ideas are greatly appreciated!