rename (user view)
Parameters
Usage Guidelines
Usage Scenario
The following describes the drive name:
flash:/my/test/ is an absolute path.
selftest/ is related to the current working directory and indicates the selftest directory in the current working directory.
Precautions
You must rename a file or directory in its source directory.
If the renamed file or directory has the same name as an existing file or directory, an error message is displayed.
If you specify old-name or new-name without specifying the file path, the file must be saved in your current working directory.
Example
# Rename the directory mytest to yourtest in the directory flash:/test/.
<AC6605> pwd flash:/test <AC6605> rename mytest yourtest Rename flash:/test/mytest to flash:/test/yourtest ?(y/n)[n]:y Info: Rename file flash:/test/mytest to flash:/test/yourtest ......Done
# Rename the file sample.txt to sample.bak.
<AC6605> rename sample.txt sample.bak Rename flash:/sample.txt to flash:/sample.bak ?(y/n)[n] :y Info: Rename file flash:/sample.txt to flash:/sample.bak .......Done