Difference between revisions of "Rename"
From Scriptwiki
BlackShroud (talk | contribs) (removed some spaces) |
|||
Line 1: | Line 1: | ||
Renames the specified file or directory. | 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 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 special path is given [[MIRC|mIRC]] assumes to find the file using the [[$mircdir|mIRC directory]] as basedir. | ||
Line 10: | Line 10: | ||
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 | |
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" | |
− | |||
− | |||
[[Category:Commands]] | [[Category:Commands]] |
Revision as of 20:30, 3 September 2005
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 special path is given mIRC assumes to find the file using the mIRC directory as basedir.
Example
Renames "foo.txt" to "bar.doc" in the mIRC directory.
/rename foo.txt bar.doc
Renames and moves "C:\My Directory\foo.txt" to "D:\bar.txt"
/rename "C:\My Directory\foo.txt" "D:\bar.txt"