Fonte XCOPY
Syntax
XCOPY source [destination] [options]
Key
- source : Pathname for the file(s) to be copied.
- destination : Pathname for the new file(s).
- [options] can be any combination of the following:
...
Copy Options
- /I If in doubt always assume the destination is a folder e.g. when the destination does not exist. ...
Examples:
To copy a file:
XCOPY C:\utils\MyFile D:\Backup\CopyFile
To copy a folder:
XCOPY C:\utils D:\Backup\utils /i
To copy a folder including all subfolders.
XCOPY C:\utils* D:\Backup\utils /s /i
The /i defines the destination as a folder.
Com base no que precede, tente o seguinte:
xcopy c:\temp\test\* e:\backup\test /s /i