This automation works for me. I have set up a scheduled task under
Windows 7 which contains the Visual basic code from your article (with
corrected paths adapted to my windows installation of course). It is
triggered, when I lock my PC, when I unlock it and hourly. Because in
my quick sync there is the cloud sync configured, I am now sure that
when I leave my PC or return to it the Desktop file and cloud file are
always up to date. This works for me because I always lock my computer
(using the shortcut "Windows key + L", for log off) when leaving it.
=======
Bedrudin