简体   繁体   中英

Reading/Accessing AppData folder using HTML5

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 eg C:\\Users\\< UserName >\\AppData\\Roaming. UserName will be changing based on the logged in user.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM