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.

JSK
  • 583
  • 6
  • 17

1 Answers1

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.

Community
  • 1
  • 1
Lasse
  • 1,414
  • 11
  • 19
  • 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. – JSK Sep 04 '14 at 11:30
  • @Vijay: No problem. Glad to help. I'd appreciate it if you'd accept my answer by clicking the checkmark beneath it. – Lasse Sep 08 '14 at 07:16
  • Just did. Sorry for the late response. – JSK Sep 10 '14 at 09:51