Benjamin Smedberg <[EMAIL PROTECTED]> wrote:

>You can get the binary location from the nsIDirectoryService (see 
>NS_OS_CURRENT_PROCESS_DIR 
>from nsDirectoryServiceDefs.h).

So the first step for me is getting the actual Directory for my
program. I've used the following syntax so far:

var dir_comp =
Components.classes["@mozilla.org/file/directory_service;1"].createInstance(Components.interfaces.nsIDirectoryServiceProvider);
var dir_prog = dir_comp.getFile("CurProcD",true);

But when I then try to use the variable "dir_prog" it doesn't seem to
work....for example with an alert:

alert(dir_prog.path); 

I've read in another thread that it should be variable.path inside the
brackets and not only alert(variable)

Thanks in advance!

Tobias Klein


Reply via email to