Running a Batch File to Open Rhino

Anyone has any idea why when one open rhino through a .bat file, the cmd doesn’t close until one closes rhino? Is there any work around?

You need to change you .bat file to this format:

start "%filename%" "%application_path%"

As an example:

start "C:\Untitled.3dm" "C:\Program Files\Rhino 7\System\Rhino.exe"
1 Like

Seems to work for what I asked, thank you very much! But to add to that, how would you format the following?

“C:\Program Files\Rhino 7\System\Rhino.exe” /nosplash /runscript=“-grasshopper editor load document open %GHfile% _enter” “%RHdir%%rhfile%”

If i just add the start to that line of code, it just doesn’t work… The variables are explicitly stated, directories and files.

start "" "C:\Program Files\Rhino 7\System\Rhino.exe" /nosplash /runscript="-Grasshopper Document Open D:\ _Enter -Open D:\Untitled.3dm"

Mahdiyar, that works perfectly! Thank you very much for your input man, greatly appreciate your time and help!