XUL のネットワーク フォルダを開くにはどうすればよいですか? 私の Firefox ツールバーでは、次のコードで ... のC:
ようなネットワーク パスではなく、のようなドライブにアクセスできます。//Development
file.initWithPath("\\DEVELOPMENT2");
完全なコード:
var file = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("\\\DEVELOPMENT2"); //---> this is not working
//file.initWithPath("Y:"); ---> this is working
file.reveal();
var process = Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
process.init(file);
var args = [];
process.run(false, args, args.length);
//end