The DSS EXE version has long had the capability to load a script from the command line:


OpenDSS filename.dss


Be sure to add a QUIT command at the end of your script to close the program down. You can now also add the nogui switch to turn off an forms (windows) that might pop up. This will allow you to run OpenDSS under Apache, for example.


Opendss Myfilescript.DSS /nogui


Thus, you can now make a batch file that will execute a series of scripts from the command line.


Be sure to export some of your results to some file that you can later retrieve by using a Show or Export command in your script. Also, make sure each script has a unique circuit name or are in separate folders so that all the exported files are saved uniquely.


The Quit command has no effect in the DLL version since it is the responsibility of the parent program to terminate

things.