--- title: Reroute Files and Settings (Windows 10) description: Learn how to create a custom .xml file and specify this file name on both the ScanState and LoadState command lines to reroute files and settings. ms.reviewer: manager: aaroncz ms.author: frankroj ms.prod: windows-client author: frankroj ms.date: 11/01/2022 ms.topic: article ms.technology: itpro-deploy --- # Reroute Files and Settings To reroute files and settings, create a custom .xml file and specify the .xml file name on both the `ScanState.exe` and `LoadState.exe` command-lines. Th custom .xml file enables you to keep your changes separate from the default .xml files, so that it's easier to track your modifications. ## Reroute a folder The following custom .xml file migrates the directories and files from `C:\EngineeringDrafts` into the **My Documents** folder of every user. **%CSIDL_PERSONAL%** is the virtual folder representing the **My Documents** desktop item, which is equivalent to **CSIDL_MYDOCUMENTS**. ```xml Engineering Drafts Documents to Personal Folder C:\EngineeringDrafts\* [*] C:\EngineeringDrafts\* [*] ``` ## Reroute a specific file type The following custom .xml file reroutes .mp3 files located in the fixed drives on the source computer into the `C:\Music` folder on the destination computer. ```xml All .mp3 files to My Documents ``` ## Reroute a specific file The following custom .xml file migrates the `Sample.doc` file from `C:\EngineeringDrafts` into the **My Documents** folder of every user. **%CSIDL_PERSONAL%** is the virtual folder representing the **My Documents** desktop item, which is equivalent to **CSIDL_MYDOCUMENTS**. ```xml Sample.doc into My Documents C:\EngineeringDrafts\ [Sample.doc] C:\EngineeringDrafts\ [Sample.doc] ``` ## Related articles [Customize USMT XML files](usmt-customize-xml-files.md) [Conflicts and precedence](usmt-conflicts-and-precedence.md) [USMT XML reference](usmt-xml-reference.md)