> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Méthode IXtfBatchFileIOClient::CopyFiles

> Méthode IXtfBatchFileIOClient::CopyFiles

# Méthode IXtfBatchFileIOClient::CopyFiles

Copie par lots les fichiers énumérés dans une liste de chaînes entre deux emplacements sur une console de développement et retourne des informations sur l'opération.

<Note>Cette méthode est déconseillée. Utilisez plutôt la méthode [IXtfFileIOClient::CopyFiles](/fr/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/copyfiles-ixtffileioclient-xtffileio-xbox-microsoft-m).</Note>

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
public:
HRESULT CopyFiles(
         LPCWSTR pszRootDirectory,
         LPCWSTR *rgszRootDirectoryRelativeFiles,
         DWORD cRootDirectoryRelativeFiles,
         LPCWSTR pszDstDirectoryName,
         DWORD dwFlags,
         IXtfCopyFileCallback *pCallback
)  
```

<a id="parametersSection" />

### Paramètres

*pszRootDirectory*\
Type : LPCWSTR

Pointeur vers le répertoire racine de la copie par lots.

*rgszRootDirectoryRelativeFiles*\
Type : LPCWSTR\*

Pointeur vers une liste de chaînes contenant les noms des fichiers à copier.

*cRootDirectoryRelativeFiles*\
Type : DWORD

Nombre de fichiers de la copie par lots.

*pszDstDirectoryName*\
Type : LPCWSTR

Pointeur vers le nom du répertoire de destination de la copie par lots.

*dwFlags*\
Type : DWORD

Indicateurs qui spécifient comment copier les fichiers. Ce paramètre est une combinaison OR au niveau du bit des macros répertoriées dans le tableau suivant.

| Valeur | Macro | Description |
| - | - | - |
| 0x80000000 | XTFCOPYFILE\_DEFER | Différer la copie de fichiers. |

*pCallback*\
Type : IXtfCopyFileCallback\*

Pointeur vers le rappel [IXtfCopyFileCallback](/fr/reference/tools/xtf/xtffileio/classes/IXtfCopyFileCallback/ixtfcopyfilecallback-xtffileio-xbox-microsoft-t) à appeler lorsque l'état de la copie change.

<a id="retvalSection" />

### Valeur de retour

Type : HRESULT

Retourne `S_OK` en cas de réussite ; sinon, retourne un code d'erreur HRESULT.

<a id="remarksSection" />

## Remarques

Cette fonction copie les fichiers énumérés dans une liste de chaînes entre deux emplacements sur une console de développement sous forme d'opération par lots et retourne des informations sur l'opération.

<Note>Cette méthode est déconseillée. Utilisez plutôt la méthode [IXtfFileIOClient::CopyFiles](/fr/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/copyfiles-ixtffileioclient-xtffileio-xbox-microsoft-m).</Note>

## Configuration requise

**En-tête :** xtffileio.h

**Bibliothèque :** xtffileio.lib

**Plateformes prises en charge :** Windows (pour les outils de console XBOX)

## Voir aussi

[IXtfFileIOClient::CopyFiles](/fr/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/copyfiles-ixtffileioclient-xtffileio-xbox-microsoft-m)\
[Interface IXtfBatchFileIOClient](/fr/reference/tools/xtf/xtffileio/classes/IXtfBatchFileIOClient/ixtfbatchfileioclient-xtffileio-xbox-microsoft-t)\
[XtfFileIO](/fr/reference/tools/xtf/xtffileio/xtffileio-xbox-microsoft-n)


## Related topics

- [IXtfBatchFileIOClient::CopyFiles Method](/reference/tools/xtf/xtffileio/classes/IXtfBatchFileIOClient/methods/copyfiles-ixtfbatchfileioclient-xtffileio-xbox-microsoft-m.md)
- [IXtfBatchFileIOClient::CopyFiles (método)](/es/reference/tools/xtf/xtffileio/classes/IXtfBatchFileIOClient/methods/copyfiles-ixtfbatchfileioclient-xtffileio-xbox-microsoft-m.md)
- [IXtfBatchFileIOClient::CopyFiles 메서드](/ko/reference/tools/xtf/xtffileio/classes/IXtfBatchFileIOClient/methods/copyfiles-ixtfbatchfileioclient-xtffileio-xbox-microsoft-m.md)
- [IXtfFileIOClient::CopyFiles Method](/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/copyfiles-ixtffileioclient-xtffileio-xbox-microsoft-m.md)
- [IXtfFileIOClient::CopyFiles (método)](/es/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/copyfiles-ixtffileioclient-xtffileio-xbox-microsoft-m.md)
