Sometimes, it would be really useful to run Rhino from the command prompt - perhaps you are batch processing some files, or maybe you need to run Rhino from a render farm management system. Rhino 4.0 provides the /runscript command line switch to allow you to do exactly this. The format is:
rhino4.exe /runscript="_-command _-secondCommand"
For example, if you want to start Rhino with a file called hdri_test.3dm, render it with the built in renderer, save the file and exit Rhino, here's a magic command script:
"c:\program files\Rhinoceros 4.0\system\Rhino4.exe" /runscript="_SetCurrentRenderPlugIn
""Rhino Render"" _render _-saverenderwindowas ""test.jpg"" _closerenderwindow _-exit"
hdri_test.3dm