Migrating Folders with Langmeier Backup

To migrate entire folder structures in one go, Langmeier Backup provides the VB Script command "Migrate"

Migrate Command (VBScript)

The migrate command in VBScript for use under Langmeier Backup. The command performs a backup, while the folder paths to be backed up can be changed as desired on the backup.

For example, Windows XP folders can be:

C:\Documents and Settings\Peter\Own files

be written to the backup in such a way that the backed up folders conform to the file structures common in Windows Vista, Windows 7, and Windows 8 +10:

C:\Users\Peter\Own files

This can use fixed built-in macros, for example, automatically put the files in the correct file structure for Windows 7. Or the path parts to be changed can be specified using user-specific expressions.



The source of the data to be migrated.


The destination path. This is where the data will be copied to and, if necessary, the directories will be structurally renamed.


Replacement expression in the form "expression1->expression2" - where expression1 is replaced by expression2 in the save path.


Replacement expression in the form "expression1->expression2" - where expression1 is replaced by expression2 in the save path.


Replacement expression in the form "expression1->expression2" - where expression1 is replaced by expression2 in the save path.


A predefined macro for a fixed scheme of folder paths. This allows you to convert folder structures from, say, Windows XP directly to Windows 7 folder structures. The "macro" specification defines the target system for which the migration is performed.

Possible values:

· Windows7
· Windows8
· WindowsVista
· Default: No macro (substitutions are made as specified in Expression1, Expression2, and Expression3)


'Copy all PST files to the USB flash drive named "USB flash drive".
'The folder path "\Local Settings\Application Data\Microsoft\Outlook" becomes
'thereby "\Documents\Outlook Files" on the USB flash drive.

Migrate "%UserProfile%\Local Settings\Application Data\Microsoft\Outlook\*.pst", "[USB flash drive]", "\Local Settings\Application Data\Microsoft\
Outlook\->\Documents\Outlook Files" 

'Here the destination folder entered in the backup job
'(Destination) is used as the backup destination, and thanks to the asterisk all subfolders of
'C:\Documents and Settings are searched and in their subfolders the
'PST files are backed up.

Migrate "C:\Documents and Settings\*\Local Settings\Application Data\Microsoft\Outlook\*.pst", Destination, "C:\Documents and Settings\->C:\Users\", "\Local Settings\Application Data\Microsoft\Outlook\->\Documents\Outlook Files\"

'With macro "Windows7" adjust the folder structures that have changed between Windows XP and
'Windows 7 - taking into account all users that exist in C:\Documents and 'Settings thanks to the specification of an asterisk (*).

Migrate "C:\Documents and Settings\*\Desktop", Destination, Windows7
Migrate "C:\Documents and Settings\*\Favorites", Destination, Windows7
Migrate "C:\Documents and Settings\*\My Documents", Destination, Windows7
Migrate "C:\Documents and Settings\*\Application Data\Microsoft\Signatures", Destination, Windows7


Save data automatically

Protect all your files.

  Buy Now   Try it for free Langmeier Backup for Windows

About the Author , Founder and CEO of Langmeier Software GmbH
Urs Langmeier Urs Langmeier is founder and CEO of Langmeier Software GmbH and thus responsible for the strategic further development of Langmeier software solutions.

Further lookup: Langmeier Backup, VB-Script, Backup

Articles relevant to the topic
Langmeier Backup Version 10 is here
FAT32 or NTFS? Which format is better for backup?
How to back up your hard drive properly and not forget anything

Post a comment here...

This article covers:
Migrate Windows XP
Migrating Windows Systems
Migrate Windows XP to Newer Systems
Backup Software For Windows
Tape Backup Windows 7
The Free Windows Backup
Start Windows Backup Manually