Script execution with bat starts rhino 8 instead of rhino 7

Hello everyone,

I have solved an automatic batch conversion from 3dm to STEP and vice versa with Python script and start via a bat file.

With rhino 7 everything worked, with rhino 8 it unfortunately comes to errors

Now the real problem: the bat file that I had working before installing rhino 8 starts rhino with the following line.

start /d β€œC:\Program Files\Rhino 7\System" Rhino.exe /nosplash /runscript=”-_RunPythonScript (%complete_path%)"

but Rhino 8 is started instead of Rhino 7

this is incomprehensible to me as the exe of rhino 7 is explicitly executed

Is it possible to explicitly request that the script is executed by rhino 7?

Thank you very much!

best max

I would change it to:

start "" "C:\Program Files\Rhino 7\System\Rhino.exe"

That should ensure Rhino 7 is started.

Hello Nathan,

thanks for your answer, I would do that if I only wanted to start the program.

I had also tested that if you only start the program as in your example, then Rhino 7 starts.

I think I was not clear enough in my description, I would like to start a Python script at the same time as starting the program via bat.

If I want to start the program (rhino7) with Python script in the bat then for some reason rhino8 starts and executes the script…

Of course you need to add the arguments to Rhino as you did before. I was just showing that instead of doing /d "C:\Program Files\Rhino 7\System" Rhino.exe you do "" "C:\Program Files\Rhino 7\System\Rhino.exe".

For instance when I do

start "" "C:\Program Files\Rhino 7\System\Rhino.exe" /nosplash /stopwatch both the /nosplash and /stopwatch arguments are passed on to Rhino 7: it starts without splash, and it will run the start up time information it gathered.

Hi Nathan,

Thank you for solving my problem

You are right when written like this rhino 7 + script is executed

in my case:
start β€œβ€ β€œC:\Program Files\Rhino 7\System\Rhino.exe” /nosplash /runscript=β€œ-_RunPythonScript (%vollstaendiger_pfad%)”

1 Like