0

I have written simple extensions for IE,Firefox and Chrome which allow users to make a call to valid phone numbers on the right click and this is working fine. But I need to run this in Citrix environment and since multiple instances of the application will be running I have set some unique values in appdata folder. For that I need to read who is the current user and the appdata folder location.

Is there a way to read the complete path of the appdata folder e.g. C:\Users\<UserName>\AppData\Roaming. UserName will be changing based on the logged in user.

1 Answer 1

1

As far as I know, there's no universal way of doing that. Mostly because there's obvious and considerable security concerns involved and thus you usually don't get direct access to the filesystem.

As a work-around for Chrome, you can try looking at Native Messaging (from this excellent answer). You'd need to research similar solutions for other browsers.

Sign up to request clarification or add additional context in comments.

3 Comments

Thank you replying, Lasse. I know how to do this in IE and Firefox. But IE (using WMI) its very slow; although Firefox its working fine. NPAPI is no longer supported so couldn't find a way in Chrome...many thanks the for Chrome solution.
@Vijay: No problem. Glad to help. I'd appreciate it if you'd accept my answer by clicking the checkmark beneath it.
Just did. Sorry for the late response.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.