MV src [src...] [dst]
src - Source file/directory name (wildcards are permitted)
dst - Destination file/directory name (wildcards not permitted)
Note:
1. If the 'dst' parameter is not specified, the current directory is
assumed to be the destination.
2. If there is more than one argument in the command line, the last one
will be taken as 'dst' unconditionally. If there is more than one
source file or directory to move, the 'dst' should be an existing
directory.
3. Attempting to move a read-only file or directory is not allowed.
4. Moving a directory that contains read-only file(s) is allowed.
5. You cannot move a directory into itself or its subdirectories.
6. You cannot move a directory if the current directory is itself or its
subdirectory.
7. Redirecting output to a file under a directory to be moved is not
allowed.
8. If an error occurs, the remaining files or directories will still be
moved.
Examples:
* To rename a file:
fs0:\> mv IsaBus.efi Bus.efi
moving fs0:\IsaBus.efi -> \Bus.efi
- [ok]
* To move a directory to the current directory:
fs0:\> mkdir test1\temp
fs0:\> mv test1\temp
moving fs0:\test1\temp -> \.\temp
- [ok]
* To rename a directory:
fs0:\> mv efi efi1.1
moving fs0:\efi -> \efi1.1
- [ok]
* To move multiple directories at a time:
fs0:\> mv test1 test2 test
moving fs0:\test1 -> \test\test1
- [ok]
moving fs0:\test2 -> \test\test2
- [ok]
* Moving a read-only directory will result a failure:
fs0:\test> attrib +r temp1
DA R fs0:\test\temp1
fs0:\test> mv temp1 temp2
moving fs0:\test\temp1 -> \test\temp2
- [error] - Write Protected
沒有留言:
張貼留言