HOW TO: Use the JScript .NET Command-Line Compiler from Any Directory (306600)
The information in this article applies to:
- Microsoft JScript .NET
- Microsoft .NET Framework 1.1
- Microsoft .NET Framework 1.0
This article was previously published under Q306600 SUMMARYThis step-by-step article describes how to use the
Jscript .NET command-line compiler from any directory. The JScript .NET
command-line compiler (Jsc.exe) is located in the \ System Root\
Microsoft.NET\Framework\ Version Number directory on your computer.
Typically, you can only use the compiler in this directory, unless you specify
additional path information for compilation. Note System Root is the Microsoft Windows directory of your computer and Version Number is the version of the .NET Framework that you have installed on your
computer. If you have more than one version of the .NET Framework installed, you must determine which version to use (typically, you would use the latest version).
back to the topModify the PATH Environment Variable- Right-click Start, and then click Explore.
- In the left pane, right-click My
Computer, and then click Properties.
- Click the Advanced tab, and then click
Environment Variables.
- Under System Variables, click
Path and then click Edit.
- In the Variable
Value text box, put the insertion point at the end of the existing text (to the right), type the following path, and then click OK:
;\System Root\Microsoft.NET\Framework\Version Number Example: ;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 - Click OK.
back to the
topTest the Modification- Click Start, and then click Run.
- In the Open text box, type the following command, and then press
ENTER: The console appears and contains Jscript .NET compiler options.
back to the topTroubleshoot- Change the path in the example to match your system
configuration.
- You must have the Microsoft .NET Framework installed on your
computer. You can install the .NET Framework when you install Visual Studio .NET, when you install another application that includes the Framework, or as a separate
installation.
- Make sure that you append the directory name, including
the semicolon separator, to the existing path. Do not overwrite the existing path.
back to the
topREFERENCESFor more information about how to compile JScript code from the
command line, visit the following Microsoft Web site: back to the top
Modification Type: | Major | Last Reviewed: | 6/18/2003 |
---|
Keywords: | kbScript kbCompiler kbCommandLine kbHOWTOmaster KB306600 kbAudDeveloper |
---|
|