What's new? | Help | Directory | Sign in
Google
jslibs
standalone Javascript development environment with general purpose native libraries.
  
  
  
  
    
Search
for
Updated Feb 27, 2008 by soubok
Labels: doc
jswinhost  
jswinhost executable

jswinhost executable

home > JSLibs > jswinhost -

Description

jswinhost ( javascript windows host ) is a small executable file that run javascript programs under a windows environment. The main difference with jshost is the jswinhost do not popup any windows

Functions

Properties

Configuration object

see jshost

Remarks

There is no way to specify the script to execute using the command line. You have to create a .js file using the name of the host. By default, jswinhost.exe is the name of the host and jswinhost.js is the script the host execute. Because jwinshost do not use a console window, errors and printed messages will not be displayed.

However, you can write your own output system:

LoadModule('jswinshell');
configuration.stdout = new Console().Write;
configuration.stderr = MessageBox;
LoadModule('jsstd');
Print('toto');
hkqjsfhkqsdu_error();

Sign in to add a comment