LastChance runs any nominated programs on shut-down.

I'm using it to auto-copy just the updated or new files with XXCOPY (another good freeware enhanced XCOPY32) to a second drive.

Works best running a .bat file, eg

C:WINDOWSCOMMANDXXCOPY.EXE "c:my documents*.*" G:MYSTUFF /bn/r/e/q/y/V2
.
.
.
exit