KrypticChewie / USMTScripts

These are the scripts I use with USMT to transfer files and settings between PCs.
6 stars 0 forks source link

Network path error #8

Closed KrypticChewie closed 5 years ago

KrypticChewie commented 5 years ago

The folder paths are not calculated correctly when used from a network share.

KrypticChewie commented 5 years ago

Will need to look for a variable that can give the current folder for a UNC path.

KrypticChewie commented 5 years ago

Will need to look for a variable that can give the current folder for a UNC path.

This assumption was wrong. The logic for folders was wrong. It was assuming that the data and logs folder should be in the root as so was looking for the drive letter. This logic is going to be changed. The new logic is that the script will be run in a folder containing the architecture folders. (Named USMT10 by me but does not need to be.) The log and data folders will be in a folder with the USMT10 folder (again it doesn't need to be that name).

KrypticChewie commented 5 years ago

The issue has been fixed with commit 10

Example of new logic: There is a folder called User State Migration Tool In this folder, there is a folder called USMT10 In this folder are the different folders for the different architectures of the USMT (amd64 arm64 x86) The scripts are also located in USMT10

If a 64 bit machine is being used the script will look in the: USMT folder (folder it is in) for the amd64 folder User State Migration Tool folder (folder above it) for the logs folder User State Migration Tool folder (folder above it) for the data folder

Again, USMT10 and User State Migration Tool folder names are not required but the relative locations will be the same by default.