This is my command-line (Batch *.bat file):
Rhino.exe /nosplash /runscript="-Grasshopper D O “C:\Test Open\Test.gh” W H -MaxViewport“
It does not work on my Rhino 8 (Windows11). The space between “Test” and “Open” breaks the script.
So, the problem is: when typed in as command inside Rhino, it works perfectly and the path may include spaces (enclosing it with double quotes), but if passed as a script to run at statup, through the command line from the operating system, the double quotes break the script and it does not work.
At first, I thought your suggestion (coming originally from @Dale) was going to work, but it does not.
It is the way a python script (path with spaces) may be called from the command line arguments.
But I’m not calling any python script. I’m running a Rhino scrip that consists only of one command for opening Grasshopper loading a specified file.
Perhaps it is possible to put the Rhino command in a Python script and then running it from the Rhino command line at startup.
But I was searching for a way of calling the Rhino command “-Grasshopper D O FileName.gh”, using a FileName white spaces.