Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Enables print command.
/print[+ | -]
Arguments
- +| - 
 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. 
Remarks
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.
Example
Cause the print statement to not be defined by the compiler:
jsc /print- test.js