Share via


/out

Sets output filename.

/out:filename

Arguments

  • filename
    The name of the output file created by the compiler.

Remarks

The /out option specifies the name of the output file. The compiler expects to find one or more source code files following the /out option.

If you do not specify the name of the output file:

  • An .exe will take its name from the first source code file used to build the output file.

  • A .dll will take its name from the first source code file used to build the output file.

On the command line, it is possible to specify multiple output files for a compilation. All source code files specified after an /out option will be compiled into the output file specified by that /out option.

Specify the full name and extension of the file you want to create. The extension must be either .exe or .dll. It is possible to specify a .dll extension for /t:exe projects.

Example

Compile t2.js and create output file t2.exe and build t3.js and create output file t3.exe:

jsc t2.js /out:t3.exe t3.js

See Also

Other Resources

JScript Compiler Options