Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4165

Batch File Script help

$
0
0

Hi Dale. Im trying to make a batch file work by drag and drop. Is there a way to include variables inside the /runscript command?

For example this batch file works:

“C:\Program Files\Rhino 7\System\Rhino.exe” /nosplash /runscript=“_-import C:\Users\porte\Desktop\box.stl enter _-GrasshopperPlayer C:\Users\porte\Desktop\box.gh delete _-SaveAs C:\Users\porte\Desktop\boxout.stl enter _-Exit n enter”

But when trying to include the drag and drop variable after _-import it does not work:

“C:\Program Files\Rhino 7\System\Rhino.exe” /nosplash /runscript=“_-import “%~1” enter _-GrasshopperPlayer C:\Users\porte\Desktop\box.gh delete _-SaveAs C:\Users\porte\Desktop\boxout.stl enter _-Exit n enter”

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4165

Latest Images

Trending Articles



Latest Images