Run from command line?

Jan 3, 2011 at 12:40 AM
Edited Jan 3, 2011 at 12:42 AM

In the Jint Documentation there is a "Tools->The Shell" item but it is empty.

Is there a way to execute some javascript from windows command line and obtain script execution output?

 

One more thing - is there a way to load some javascript file into current context?

E.g. in my current script there is a foo function defined. I would like to load some .js file with bar function defined so my foo function can call bar.

 

var foo = function() {
  bar();
}

load("bar.js");

foo();