Opening a user's home folder?

My XULRunner app has a “Show Records” button. When you click on it, Windows Explorer will open a folder for the user. How can I achieve this?

I can not find it in the documentation for the input / output file, maybe I'm looking in the wrong place.

Edit The problem is not in finding the path, but in telling the system to open the folder. I can't seem to find the openFolder function.

+3
source share
2 answers

You are looking for a method reveal()on nsILocalFile .

+2
source

Do you mean:

  %HOMEPATH%

, , , % HOMEPATH%. , . Windows wiki.

+1

Source: https://habr.com/ru/post/1731796/


All Articles