New
#31
The original version contained explanations for the two stages being used.
Code::: Extract the Registry entry for the Desktop folder [Current user] For /F "usebackq tokens=3 " %%X in (`Reg Query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop`) Do Set DesktopFolderRaw=%%X :: Resolve a result that contains a variable such as %UserProfile% For /F "usebackq delims=" %%Y in (`Echo %DesktopFolderRaw%`) Do Set DesktopFolder=%%Y
Denis