[THIN] Re: Folder redirection doesn't work in DOS and other apps

  • From: Jeremy Saunders <jeremy@xxxxxxxxxxxxxxxxxxxx>
  • To: "thin@xxxxxxxxxxxxx" <thin@xxxxxxxxxxxxx>
  • Date: Wed, 15 Jul 2015 03:52:05 +0000

In Windows Explorer, expand Libraries and right click on Documents. You should
see your redirected folder there. I think that’s what your screen shot shows.

You can also check the Personal value under the
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders

As Joe said, the application needs to know how to query this value properly.
There is no environment variable set.

Further to Joe’s recommendation you may also be able to create an App Compat
Shim.

But if you are using UPM, you can probably just add the files(s) to the “List
of files to synchronize”.

Cheers,
Jeremy

From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of
Joe Shonk
Sent: Wednesday, 15 July 2015 11:26 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Folder redirection doesn't work in DOS and other apps

No, that is not the case. Folder Redirection only occurs when an application
references the path via the CLSID. Another words, the develop of your app is
lazy and/or uneducated. Simple ways around this is to have the application use
a drive letter and then use a subst command. Some of this is automated with
the App Compatibly scripts (usrlogon.cmd, usrlogn1.cmd)

Joe

On Tue, Jul 14, 2015 at 1:34 PM, Jason Benway
<benwayj@xxxxxxxxxxx<mailto:benwayj@xxxxxxxxxxx>> wrote:
Yes I’m using UPM (latest version), I thought that c:\user\username\documents
should redirect even within a cmd window, until I started troubleshooting this
app ☹

jb

From: thin-bounce@xxxxxxxxxxxxx<mailto:thin-bounce@xxxxxxxxxxxxx>
[mailto:thin-bounce@xxxxxxxxxxxxx<mailto:thin-bounce@xxxxxxxxxxxxx>] On Behalf
Of Pat Coughlin
Sent: Tuesday, July 14, 2015 4:27 PM

To: thin@xxxxxxxxxxxxx<mailto:thin@xxxxxxxxxxxxx>
Subject: [THIN] Re: Folder redirection doesn't work in DOS and other apps

Are you using UPM or another profile management solution? A number of factors
can cause it to exist (mandatory profile, created before the folder
redirection policy). Folder Redirection prevents it from being utilized. In
you app log you should see the results of your folder redirection policy. Some
apps don't always respect folder redirection, especially old apps. That is
what you need to watch for.

On Tue, Jul 14, 2015 at 4:21 PM, Jason Benway
<benwayj@xxxxxxxxxxx<mailto:benwayj@xxxxxxxxxxx>> wrote:
Thanks, I can cd into my profile and I see the docs folder but it’s a local
folder. See image

[cid:image001.jpg@01D0BEF4.C8E605C0]

Vs explorer > library > my documents

[cid:image002.jpg@01D0BEF4.C8E605C0]

Is anyone else running redirected folders? Are you seeing the same thing?
Wondering if I don’t have something set correctly.

jb

From: thin-bounce@xxxxxxxxxxxxx<mailto:thin-bounce@xxxxxxxxxxxxx>
[mailto:thin-bounce@xxxxxxxxxxxxx<mailto:thin-bounce@xxxxxxxxxxxxx>] On Behalf
Of Webster
Sent: Tuesday, July 14, 2015 4:15 PM
To: thin@xxxxxxxxxxxxx<mailto:thin@xxxxxxxxxxxxx>
Subject: [THIN] Re: Folder redirection doesn't work in DOS and other apps

Found this https://technet.microsoft.com/en-us/library/cc782799(v=ws.10).aspx

Folder Redirection and environment variables
The folder redirection client side extension is only able to process two
environment variables: %username% and %userprofile%. Other environment
variables such as %logonserver%, %homedrive% and %homepath% will not work with
folder redirection.

I have no idea if that helps you or not since that is referring to GPO
processing but it is worth a try.

Thanks


Webster

From: thin-bounce@xxxxxxxxxxxxx<mailto:thin-bounce@xxxxxxxxxxxxx>
[mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Jason Benway
Sent: Tuesday, July 14, 2015 2:51 PM
To: thin@xxxxxxxxxxxxx<mailto:thin@xxxxxxxxxxxxx>
Subject: [THIN] Folder redirection doesn't work in DOS and other apps


We are redirecting my documents and some other locations.

If I open a dos window and cd c:\users\username\documents it does to a local
directory not the redirected location. I can browse that same path in explorer.
it seems to only be when I use the library and shortcuts in a "open" dialog
that I see the folder redirection location.

A new application we are using saves the config file to "my
docs\application\session"

I've saved the config file to the redirect my docs\application\session, but the
application doesn’t pull up with the config. I'm guessing its not using the
correct environment variable to look for the config file. What is the correct
environment variable that would recognize redirected folders?

thanks,jb



JPEG image

JPEG image

Other related posts: