From WikiChip
Difference between revisions of "mirc/commands/rename"
m (bot: correcting title) |
|||
Line 3: | Line 3: | ||
== Synopsis == | == Synopsis == | ||
− | /rename <filename> <new_filename> | + | /rename -f <filename> <new_filename> |
/rename <dirname> <new_dirname> | /rename <dirname> <new_dirname> | ||
== Switches == | == Switches == | ||
+ | * '''-f''' - Flush the renamed file to the disk | ||
+ | |||
+ | == Parameters == | ||
* '''<filename>''' - The path of the file or directory to rename or move | * '''<filename>''' - The path of the file or directory to rename or move | ||
* '''<new_filename>''' - The new path of the file or directory | * '''<new_filename>''' - The new path of the file or directory | ||
− | |||
− | |||
− | |||
== Example == | == Example == |
Revision as of 08:58, 8 October 2016
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
Template:mIRC menu The /rename command can be used to rename and/or move a file or a directory. If the path contains spaces, you must enclose the path in a pair of double quotes ($qt).
Synopsis
/rename -f <filename> <new_filename> /rename <dirname> <new_dirname>
Switches
- -f - Flush the renamed file to the disk
Parameters
- <filename> - The path of the file or directory to rename or move
- <new_filename> - The new path of the file or directory
Example
/rename E:\example.txt E:\renamed.txt
Will produce the following result:
* Renamed 'E:\example.txt' to 'E:\renamed.txt'
Compatibility
Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also
- List of commands
- List of identifiers
- $read
- $readini
- $fopen
- /copy
- /fclose
- /fopen
- /mkdir
- /remove
- /rmdir
- /write
- /writeini
mIRC commands list