<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=File.move</id>
	<title>File.move - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=File.move"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.move&amp;action=history"/>
	<updated>2026-05-15T19:28:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=File.move&amp;diff=750&amp;oldid=prev</id>
		<title>JoeStrout: Created page with &quot;The &lt;c&gt;file.move&lt;/c&gt; method moves or renames a file on disk to a different name/path on the same disk.  === Arguments ===  {| class=&quot;wikitable&quot; |- ! Parameter Name !! Defa...&quot;</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=File.move&amp;diff=750&amp;oldid=prev"/>
		<updated>2021-07-17T04:10:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The &amp;lt;c&amp;gt;&lt;a href=&quot;/wiki/File&quot; title=&quot;File&quot;&gt;file&lt;/a&gt;.move&amp;lt;/c&amp;gt; method moves or renames a file on disk to a different name/path on the same disk.  === Arguments ===  {| class=&amp;quot;wikitable&amp;quot; |- ! Parameter Name !! Defa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;lt;c&amp;gt;[[file]].move&amp;lt;/c&amp;gt; method moves or renames a file on disk to a different name/path on the same disk.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter Name !! Default Value !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| oldPath || &amp;quot;&amp;quot; || file name, partial path, or absolute path to existing file or directory&lt;br /&gt;
|-&lt;br /&gt;
| newPath || &amp;quot;&amp;quot; || file name, partial path, or absolute path to new location&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If either parameter given a file name or partial path, it will be interpreted relative to the current working directory (see &amp;lt;c&amp;gt;[[file.curdir]]&amp;lt;/c&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
If '''newPath''' specifies an existing directory, MiniScript will attempt to move the file into that directory (keeping the original file name).  Otherwise, the file will be moved/renamed to the given new path.  &lt;br /&gt;
&lt;br /&gt;
=== Result ===&lt;br /&gt;
&lt;br /&gt;
If the file was successfully moved/renamed, this method returns [[true]] (1).&lt;br /&gt;
Otherwise, it returns [[false]] (0).  This can happen if the old file does not exist, if some file already exists at the new path, or if some other low-level issue occurs (for example, the file is locked).&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
The following attempts to rename a file called &amp;quot;foo.txt&amp;quot; to &amp;quot;bar.txt&amp;quot; in the [[file.curdir|current directory]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;file.move &amp;quot;foo.txt&amp;quot;, &amp;quot;bar.txt&amp;quot;&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;br /&gt;
[[Category:Command-Line MiniScript]]&lt;/div&gt;</summary>
		<author><name>JoeStrout</name></author>
		
	</entry>
</feed>