# Avoid File Version Prompt

**URL:** <https://discourse.mcneel.com/t/avoid-file-version-prompt/79552>\
**Category:** Rhino Developer\
**Tags:** rhinoscript, rhinocommon\
**Created:** [March 1, 2019, 10:03pm UTC](https://discourse.mcneel.com/t/avoid-file-version-prompt/79552 "2019-03-01T22:03:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![don.sayler](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/don.sayler/32/342132_2.png) [@don.sayler](https://discourse.mcneel.com/u/don.sayler)\
**Post date:** [March 1, 2019, 10:03pm UTC](https://discourse.mcneel.com/t/avoid-file-version-prompt/79552/1 "2019-03-01T22:03:17Z")

</div>

Hi All.

I’m creating a PlugIn that automates processing a number of v4 and v5 files. When I call the Rhinoscript to save a V4 file, I’m telling the -Save command to save as V5. But, I still get the Save As Version dialog.

In searching the forums, I found this post

> [@Batch SaveSmall - how to get rid of the version prompt?](https://discourse.mcneel.com/t/batch-savesmall-how-to-get-rid-of-the-version-prompt/23198):
>
> Hi, I’m trying to batch process a bunch of V4 files and SaveSmall. I am using: Call Rhino.Command("\_-SaveSmall \_Version=5 \_Enter", True) Tried several combinations but I can’t figure out the way to skip the ‘version’ dialog (V4 vs V5) that ruins the batch resaved process. Any ideas ? thanks– Jarek

but the reference in GitHub is gone.

Here’s the command I’m using  
rhinoCommand = @“-\_Save V=5 S=No G=No a=Yes e=Yes \_Enter”;  
rhinoScriptResult = RhinoApp.RunScript(rhinoCommand, true);

rhinoScriptResult returns true.

I also tried V=5.0, but that didn’t help.

I’m using VS2015, RhinoCommon v5.1.30000.17

Thanks.  
Don Sayler

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/772741_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [March 3, 2019, 4:55am UTC](https://discourse.mcneel.com/t/avoid-file-version-prompt/79552/2 "2019-03-03T04:55:15Z")

</div>

Hi @don.sayler,

Here is the script you’re looking for.

[https://github.com/mcneel/rhino-developer-samples/blob/6/rhinoscript/BatchSaveSmall.rvb](https://github.com/mcneel/rhino-developer-samples/blob/6/rhinoscript/BatchSaveSmall.rvb)

If you are trying to do this from a plug-in, then you’ll want to read this.

[https://developer.rhino3d.com/guides/rhinocommon/run-rhino-command-from-plugin/](https://developer.rhino3d.com/guides/rhinocommon/run-rhino-command-from-plugin/)

Does this help?

– Dale
