Specifications
94 Version 2.0
When copying to another directory, the directory must already exist.
Status Codes Returned
SHELL_SUCCESS The action was completed as requested.
SHELL_INVALID_PARAMETER One of the passed in parameters was incorrectly formatted or its
value was out of bounds.
SHELL_OUT_OF_RESOURCES There was insufficient space to save the requested file at the
destination.
SHELL_SECURITY_VIOLATION This function was not performed due to a security violation
SHELL_WRITE_PROTECTED An attempt was made to create a file on media that was write-
protected.
Examples
Note:
1. ‘-r’ must be specified if src is a directory. If '-r' is
specified, then the source directory will be recursively
copied to the destination.
Src itself will be copied. ????
• To display the contents of current directory first of all:
fs0:\> ls
Directory of: fs0:\
06/18/01 01:02p <DIR> 512 efi
06/18/01 01:02p <DIR> 512 test1
06/18/01 01:02p <DIR> 512 test2
06/13/01 10:00a 28,739 IsaBus.efi
06/13/01 10:00a 32,838 IsaSerial.efi
06/18/01 08:04p 29 temp.txt
06/18/01 08:05p <DIR> 512 test
3 File(s) 61,606 bytes
4 Dir(s)
• To copy a file in the same directory, but change the file name:
fs0:\> cp temp.txt readme.txt
copying fs0:\temp.txt -> fs0:\readme.txt
- [ok]
• To copy multiple files to another directory:
fs0:\> cp temp.txt isaBus.efi \test
copying fs0:\temp.txt -> fs0:\test\temp.txt
- [ok]
copying fs0:\isaBus.efi -> fs0:\test\IsaBus.efi
- [ok]
• To copy multiple directories recursively to another directory:










