A convenient and fast data migration tool for batch migrating application data to other locations and creating links at the original location to ensure the migrated programs work properly.
-
Save
DataMigrator.exe
andRegisterOrUnregister.bat
to a directory of your choice. -
Right-click on
RegisterOrUnregister.bat
and select "Run as administrator". -
Save the list of directories that need to be migrated as
.ini
file and rename the extension to.mil
. The following demonstrate the file format for migrating SSH and VSCode data.
[SSH]
MappingDirectory=<UserProfile>\.ssh
StorageDirectory=SSH
Operation=Move
[VSCodeExtensions]
MappingDirectory=<UserProfile>\.vscode
StorageDirectory=VSCode\ExtensionsDir
Operation=Map
[VSCodeUserData]
MappingDirectory=<AppData>\Code
StorageDirectory=VSCode\UserDataDir
Operation=Map
- Double-click on your
.mil
file and enjoy! If the directories you are migrating require elevated permissions, such as%ProgramFiles%
, you will need to right-click and select "Run as administrator" to ensure the necessary access privileges.
The profile file follows the INI format.
Use angle brackets <>
in the path to access environment variables. The following two paths are equivalent.
<ProgramFiles(x86)>\Common Files\Adobe
C:\Program Files (x86)\Common Files\Adobe
- Move: Migrates the
MappingDirectory
to theStorageDirectory
and links it, then changes theOperation
toMap
after the first run. - Erase: Links the
MappingDirectory
to theStorageDirectory
and clears both theMappingDirectory
andStorageDirectory
, then changes theOperation
toMap
after the first run. - Map: Links the
MappingDirectory
to theStorageDirectory
and clears theMappingDirectory
if it is not empty.
This project is licensed under the MIT License - see the LICENSE file for details.