Use GetFolderPath to get the Desktop location
Compare changes
+ 3
− 2
@@ -319,8 +319,9 @@ if (!(Test-Path -Path ('{0}' -f $MsysDir))) {
On my system, for example, Desktop is backed up with OneDrive ($HOME/OneDrive/Desktop). I'm sure Windows has all other sorts of fun configurations that are possible.