Neil Stansbury wrote:
var nsIFile = nsIFileProtocolHandler.getFileFromURLSpec( uri );
if ( nsIFile.exists() ) {
nsIFile.QueryInterface(Components.interfaces.nsILocalFile);
nsIFile.launch();
}
I don't think that naming local variables as interfaces is a good
idea... (and note that this example assumes you have a URI for the file,
and that you have the file protocol handler already in a variable called
nsIFileProtocolHandler)
If you want to pass arguments to the executable, you can use nsIProcess.
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom