How to manage environment variable after migration to OneDrive

%3CLINGO-SUB%20id%3D%22lingo-sub-327879%22%20slang%3D%22en-US%22%3EHow%20to%20manage%20environment%20variable%20after%20migration%20to%20OneDrive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-327879%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20in%20process%20of%20File%20Server%20Home%20Directory%20migration%20to%20OneDrive.%20After%20migration%20we%20are%20making%20home%20directory%20as%20read%20only.%20And%20after%2090%20days%20of%20migration%20file%20server%20will%20be%20decommissioned.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20some%20of%20the%20application%20which%20is%20running%20as%20published%20Citrix%20app.%3C%2FP%3E%3CP%3EDuring%20the%20startup%20of%20the%20Published%20application%2C%20an%20INI%20file%20is%20placed%20on%20the%20users%20homedirectory%20by%20using%20the%20environmental%20variables%20%25HOMEDRIVE%25%20and%20%25HOMEPATH%25.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20migration%20How%20can%20we%20now%20solve%20this%20issue%2C%20should%20we%20use%20another%20environmental%20variable%20for%20this%2C%20if%20so%20then%20how%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EAvian%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-327879%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-328137%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20manage%20environment%20variable%20after%20migration%20to%20OneDrive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-328137%22%20slang%3D%22en-US%22%3E%3CP%3EUnless%20you%20have%20the%20source%20of%20the%20app%2C%20or%20there%20is%20a%20configuration%20option%20for%20the%20file%20location%2C%20you%20cannot%20change%20where%20the%20file%20ends%20up.%20You%20can%20however%20modify%20the%20value%20of%20the%20environmental%20variables%2C%20even%20%22virtualize%22%20them%20by%20using%20a%20script%20that%20changes%20the%20value%20before%20the%20application%20starts%2C%20then%20changes%20it%20back.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hello

 

We are in process of File Server Home Directory migration to OneDrive. After migration we are making home directory as read only. And after 90 days of migration file server will be decommissioned.

 

We have some of the application which is running as published Citrix app.

During the startup of the Published application, an INI file is placed on the users homedirectory by using the environmental variables %HOMEDRIVE% and %HOMEPATH%.

 

After migration How can we now solve this issue, should we use another environmental variable for this, if so then how?

 

Regards

Avian

 

1 Reply

Unless you have the source of the app, or there is a configuration option for the file location, you cannot change where the file ends up. You can however modify the value of the environmental variables, even "virtualize" them by using a script that changes the value before the application starts, then changes it back.