I am trying to export the registry value to a text file and then use it to set as a variable in batch.
For e.g. I want to find out what is the current sync location for One Drive folder, which resides in HKCU -> Environment - OneDrive (screenshot attached), then want to set a variable in batch for it.
