2009-09-29 70 views
1

我有一個需要被從JavaScript在Firefox擴展名爲BAT文件..如何調用批處理文件目前Firefox擴展內容目錄內

我已經蝙蝠當前文件中的內容/ chrome目錄.. 我試着調用批處理文件這樣的..

var exe = 

Components.classes['@mozilla.org/file/local;1'] 
      .createInstance(Components.interfaces.nsILocalFile); 
exe.initWithPath("chrome://sample/content/test.bat"); 
exe.launch(); 

但它不工作..

回答

相關問題