Batch File Script help

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”

No, sorry. But Windows-style batch files can have replaceable parameters.

– Dale