title: Take the path of a file by dropping it on batch or python
body: <p>in my head this problem seems simple but I cant for the life of me figure it out.
  I want to use a function similar to os.replace() to move a file/folder from one location which could vary to one that is set whilst also preserving the name of it.</p>
  <p>At this point I couldn't figure it out however to make it slightly more difficult I want to be able to drop a file onto the batch/python script and have the code detect the filepath for the file i dropped on it.</p>
  <p>Sorry for the bad explanation in short:</p>
  <pre><code>import os
  initialfilepath = &quot;The filepath of the file i drop onto the batch/python file&quot;
  finalfilepath = &quot;Predetermined/file/path etc&quot;
  os.replace(initialfilepath,finalfilepath) &lt;--However i want to preserve the name of the file.
  </code></pre>
  <p>Any help would be greatly appreciated!</p>