@Anonymous wrote:
Hello,
can we invoke a script from a tool using batch-mode commands in windows ?
i would like to know the command.
Regards,
Sushmitha
Hello,
Yes you can invoke a script from the command line.
From the EAGLE help:
Executing commands
If a command is given with the '-C' option, as in
eagle -C "window (1 1) (2 2);" myboard.brd
EAGLE will load the given file and execute the command as if it had been typed into the editor window's command line.
The following conditions apply for the '-C' option:
- A file name (board, schematic or library) must be given, so that an editor window will be opened in which the command can be executed. That file doesn't necessarily need to exist. The command is executed after loading and confirming of related messages.
- The eagle.scr file will not be executed automatically.
- The option '-s' will be ignored.
- The user settings will not be written back to the eaglerc file.
- Any project that has been open when EAGLE was left the last time will not be opened.
- The command can be a single command, or a sequence of commands delimited by semicolons.
To run EAGLE without automatically executing the eagle.scr file or loading a project, the command string can be empty, as in
eagle -C ""
Note that in this special case there must be a blank between the option character and the quotes, so that the program will see the explicitly empty string. There also doesn't have to be a file name here, because no command will actually be executed.
So in your case, assuming you are wanting to do something in a library file as per your other queries you could issue something like the following (not tested!) command in your batch file:
eagle -C "script myScript.scr" myLibrary.lbr
Best Regards,
Rachael