Run SolarFarmer from the Command Line
The SolarFarmer application can be run from the command line - useful for automation tasks. You can open a specified workbook and run a procedure (script) in the opened workbook.
Open a command prompt in Windows. Navigate to the latest SolarFarmer installation folder (or use the full path of the SolarFarmer executable), then use some or all of the following options:
Option | Action |
---|---|
-open filePath |
Open the specified workbook |
-run procedureName |
Run the specified procedure (must also open a workbook that contains the procedure) |
-close |
Close SolarFarmer after completing the procedure (must run a procedure to use this) |
-invisible |
Does not open the application window |
-nosplash |
Hides the splash screen |
For example:
GH.SolarFarmer.exe -open "C:\Workbooks\My workbook.sfw" -run MyScript ^
-close -invisible -nosplash