EdiSIC macro mode : an alternative to the command line
The EdiSIC features such as importing sections in text format may require the use of a command line longer than the 256 characters allowed by the Windows® operating system.
So there’s a mode of writing longer command lines in a file EDISIC.MAC. The location of EDISIC.MAC is defined in this order:
- in the folder defined as first argument of the command line if one argument is present when EdiSic is launched;
- in the current folder when Edisic is launched;
- in the folder of the last project opened with EdiSic.
Example for loading the EDISIC.MAC file located in a folder defined in the command line:
C:\MyDocs\MyInputs>C:\SIC\exe\edisic.exe C:\MyDocs\MyFolderWithEdisicMac
Syntax of EDISIC.MAC file
You just have to write the arguments used in the command line usually used for asking EdiSIC to do a specific task. See examples in the section "Control SIC from other programs (Batch mode)".
For example, for a file edisic.mac:
D:\SIC\Po ImportXml_new Po exportdata1.txt exportdata2.txt exportdata3.txt exportdata4.txt exportdata5.txt exportdata6.txt exportdata7.txt exportdata8.txt exportdata9.txt exportdata10.txt
Then just run Edisic.exe on the command line, or directly in the usual way (double click on the Windows shortcut), and the instructions written in the Edisic.mac file will be executed. Here in this example importing 10 section data files into a Po.xml file that will be saved in the D:\SIC\Po data subdirectory. Even if the file already exists a new file will be created (because import option ImportXml_new). To stop the use of this automatic mode in macro mode just delete (or rename) the edisic.mac file.