Difference between revisions of "Rename"

From Scriptwiki
Jump to: navigation, search
 
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
Renames the specified file or directory.
 
Renames the specified file or directory.
  
  /rename <filename> <newfilename>
+
/rename <filename> <newfilename>
  /rename <directoryname> <newdirectoryname>
+
/rename <directoryname> <newdirectoryname>
  
Can also be used to move a file from one to another directory. If the filename contains spaces, you need to use double quotes. If no special path is given [[MIRC|mIRC]] assumes to find the file using the [[$mircdir|mIRC directory]] as basedir.
+
Can also be used to move a file from one to another directory. If the filename contains spaces, you need to use double quotes. If no path is given, [[MIRC|mIRC]] attempts to find the file within the [[$mircdir|mIRC directory]].
  
 
== Example ==
 
== Example ==
  
 +
/rename foo.txt bar.doc
 
Renames "foo.txt" to "bar.doc" in the mIRC directory.
 
Renames "foo.txt" to "bar.doc" in the mIRC directory.
  
  /rename foo.txt bar.doc
+
/rename "C:\My Directory\foo.txt" "D:\bar.txt"
 
 
 
Renames and moves "C:\My Directory\foo.txt" to "D:\bar.txt"
 
Renames and moves "C:\My Directory\foo.txt" to "D:\bar.txt"
  
  /rename "C:\My Directory\foo.txt" "D:\bar.txt"
+
==See Also==
  
 +
* [[copy|/copy]]
 +
* [[remove|/remove]]
 +
* [[mkdir|/mkdir]]
 +
* [[rmdir|/rmdir]]
  
 
[[Category:Commands]]
 
[[Category:Commands]]

Latest revision as of 20:56, 7 April 2008

Renames the specified file or directory.

/rename <filename> <newfilename>
/rename <directoryname> <newdirectoryname>

Can also be used to move a file from one to another directory. If the filename contains spaces, you need to use double quotes. If no path is given, mIRC attempts to find the file within the mIRC directory.

Example

/rename foo.txt bar.doc

Renames "foo.txt" to "bar.doc" in the mIRC directory.

/rename "C:\My Directory\foo.txt" "D:\bar.txt"

Renames and moves "C:\My Directory\foo.txt" to "D:\bar.txt"

See Also