title: How to rename executable / binary file during runtime using OS package?
body: <p>actually this is a pretty straightforward question (with possible tricky implementation maybe). I have a command-line application which executed within a binary file and has an update feature which rename the old file with the newest one.</p>
  <p>How can I implement binary file renaming (let's say <code>exe</code> in Windows) during runtime of the prior binary using <code>os</code> package or other alternatives?</p>
  <p>Example : <br />
  prior binary : <code>version1.exe</code> <br />
  latest binary : <code>version2.exe</code> <br />
  I want <code>version1.exe</code> &quot;transform&quot; into <code>version2.exe</code> by name, without creating any temporary file or such during runtime.</p>