Share via

FSLogix redirection.xml and system variables

Gregg Hughes 316 Reputation points
2021-03-17T20:32:27.727+00:00

Good afternoon, all!

We have a customer running an application in RDS that keeps data in %TEMP% for use in program crash recovery. That is, if the app crashes or abends, it will look in a location in %TEMP% for work to recover.

I want to write that %TEMP% location back to the user VHDX to be able to recover work should there be a problem with the application. Can I use a system variable in the redirections.xml file to capture this location?

Thanks!

Gregg

Windows for business | Windows Client for IT Pros | User experience | FSLogix
0 comments No comments

2 answers

Sort by: Most helpful
  1. Gregg Hughes 316 Reputation points
    2021-03-18T14:12:14.677+00:00

    Hi Karlie!

    Thanks for the quick pingback!

    The problem is that redirections.xml does not appear to allow the use %TEMP% as a variable. Example:
    <Includes>
    <Include>%TEMP%\FolderToKeep</Include>
    <Include>%TEMP%\FolderToDiscard\FolderToKeep</Include>
    </Includes>

    Because the full location of %TEMP% can change depending on which RDS server your broker hands your session to, using an absolute path like AppData\Local\Temp\<Number>\FolderToKeep isn't workable. If %TEMP% will work, that will point to the location on any session server without an issue. The question is whether %TEMP% will be parsed correctly by FSLogix or not.

    I checked with the application publisher and there's likely no way to control the path for those recovery files, so in all likelihood I'm stuck with making redirections.xml work.

    Thanks!

    Gregg

    Was this answer helpful?


  2. Anonymous
    2021-03-18T05:22:21.293+00:00

    Hi @Gregg Hughes

    We can use <Includes>in redirections.xml to redirect a folder back into the container when a parent folder has been redirected out of the container.

    However it's not suggest to write TEMP folder back as it is storing large amounts of data, which would cause delay when user log on.

    Best Regards
    Karlie

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.