there are two ways:
the first way is to "SetShellVarContext All"
and then use the VARs like $DESKTOP to put a File in the "All Users\Desktop" Directory
alternative you can read these Variables from the registry
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion" is a nice example where you find a few paths and settings
hope this helps