Fro example, I have a script to treat all html files in C:\myWorkplace.
var file = FileUtils.getDir("DfltDwnld", ["myTemp"], true);
var entries = file.directoryEntries;
while(entries.hasMoreElements()) {
var entry = entries.getNext();
entry.QueryInterface(Components.interfaces.nsIFile);
var myOutput = "C:\\myOutput\\" + entry.leafName;
...
}
Because I can’t figure out how to go through files in C:\myWorkplace\, ( “DfltDwnld” can’t be replaced with "C:\\myWorkplace\\"! This is another question I want to ask!!), I need to move all html files in C:\myWorkplace\ first to System\Download\myTemp\, treat them, and then delete all of them. Therefore I need to run at least two outside Windows commands (Move and Delete) in the singe Komodo script, and get the error.
There are a couple options I think but I think the easiest would be to use require("ko/shell") to run the copy and delete commands instead of whatever you’re using that is dumping it’s output to the Output console: http://docs.activestate.com/komodo/12/sdk/api/module-ko_shell.html