Difference between revisions of "Rename"
From Scriptwiki
BlackShroud (talk | contribs) (removed some spaces) |
m |
||
Line 4: | Line 4: | ||
/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 | + | 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. | + | /rename "C:\My Directory\foo.txt" "D:\bar.txt" |
+ | Renames and moves "C:\My Directory\foo.txt" to "D:\bar.txt" | ||
+ | |||
+ | ==See Also== | ||
− | + | * [[copy|/copy]] | |
+ | * [[remove|/remove]] | ||
+ | * [[mkdir|/mkdir]] | ||
+ | * [[rmdir|/rmdir]] | ||
− | |||
[[Category:Commands]] | [[Category:Commands]] |
Latest revision as of 19: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"