Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-30-2006, 08:17 PM   PM User | #1
lucidlogic
New to the CF scene

 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
lucidlogic is an unknown quantity at this point
document path on local machine

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
.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile)

file.initWithPath(path)
file.launch()
}


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.

Last edited by lucidlogic; 07-30-2006 at 08:19 PM..
lucidlogic is offline   Reply With Quote
Old 07-31-2006, 04:38 AM   PM User | #2
lucidlogic
New to the CF scene

 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
lucidlogic is an unknown quantity at this point
nobody knows the answer to such a simple question? Pathetic.
lucidlogic is offline   Reply With Quote
Old 07-31-2006, 05:00 AM   PM User | #3
Kravvitz
Senior Coder

 
Join Date: Feb 2006
Location: USA
Posts: 1,013
Thanks: 0
Thanked 0 Times in 0 Posts
Kravvitz is an unknown quantity at this point
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.
__________________
Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions
Java != JavaScript && JScript != JavaScript
Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.
Kravvitz is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:00 AM.


Advertisement
Log in to turn off these ads.