Using 'Move data location' feature ??
« Thread started on: Jul 29th, 2017, 2:22pm »
I understand using 'Move data location' feature sets the DATA field, %PROFILE%, registry entry to the location of the Stickies data files.
The documentation under 'Backup' uses the word "effectively" as follows: "So, by setting the value to %PROFILE%\My Documents\stickies, you would effectively move the data files to the stickies directory in the My Documents directory of the current user."
Q's: 1- Are the existing (pass used/referenced) data files actually moved to this new location along with the registry update or are new ones created?
2- If new ones are created what would be the correct steps to use the existing (pass used/referenced) data files preserving data integrity. I ask because I would assume Stickies should inactive but must be to use the 'Move data location' feature. Is there an standalone command to execute the 'Move data location' feature?
Re: Using 'Move data location' feature ??
« Reply #1 on: Aug 1st, 2017, 4:23pm »
1 - no, the files aren't moved. Instead, the registry path is altered, all data is flushed, a full backup of data is taken to the new location (files are copies), and then Stickies is forcibly restarted.
When it runs, it sees the new location in the registry, and open the files in that location and runs from there instead.
The files in the original location are left where they are. I couldn't risk performing "move" operations in case something went wrong one day on someone's machine, and using this feature would have hosed all their data. Files are left in the original location as a safety measure.
There's not an API command to move the data, no. Were you wanting to do that from an external app, you could get the job done by closing Stickies (use 'stickies.exe -close') to flush data, moving the files, altering the registry value and then launching the app again.