View Full Version : document path on local machine

07-30-2006, 09:17 PM
I am writing a firefox extension.

I have a js file embedded into additional files to make up the extension.

I want to run a single executable file, but I can't figure out what the relative path is. The path must remain relative, because the user will set the directory.

The js code like so:

runthefile: function(){

const path = "calc.exe"

var file = Components


However, it doesn't seem to run calc.exe no matter where I put it.

I've also tried /calc.exe, \calc.exe, ./calc.exe, and .\calc.exe with no success.

I have also embedded calc.exe at every directory level, still nothing.

07-31-2006, 05:38 AM
nobody knows the answer to such a simple question? Pathetic.

07-31-2006, 06:00 AM
It may be a simple question, but it requires highly specialized knowledge that not many people have.

Try asking in the Mozillazine Extension Development Forum. (http://forums.mozillazine.org/viewforum.php?f=19)