Environment Variables on Windows 7 when using Folder Redirection
Posted on 2014-07-23
I am using Folder Redirection in a windows 2008 domain. Redirecting Desktop and Documents to a server share via a folder redirection group policy.
I want to reference the path to the desktop of users via a batch file. But when I use echo %userprofile%/Desktop I get c:\users\username instead of \\server\users\username. But the desktop of coarse is on the server. Verified the desktop is on the server.
So guessing there is another way to get the path to the redirected desktop, but Dr google has given me no good answers.