Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic


Enables print command.

/print[+ | -]
+| -

By default, /print or /print+ causes the compiler to enable the use of the print statement. An example of a print statement is,

print("hello world"); 

Specifying /print- will disable the print command.

You would use /print- if your .dll will be loaded into an environment that doesn't have a console.

You can set Microsoft.JScript.ScriptStream.Out to be an instance of a TextWriter object to enable print to send output elsewhere.

Cause the print statement to not be defined by the compiler:

jsc /print- test.js
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.