Microsoft KB Archive/306600

= HOW TO: Use the JScript .NET Command-Line Compiler from Any Directory =

Article ID: 306600

Article Last Modified on 6/18/2003

-

APPLIES TO


 * Microsoft JScript .NET
 * Microsoft .NET Framework 1.1
 * Microsoft .NET Framework 1.0

-



This article was previously published under Q306600



IN THIS TASK

 * SUMMARY
 * Modify the PATH Environment Variable
 * Test the Modification
 * Troubleshoot
 * REFERENCES



SUMMARY
This 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 \ \ Microsoft.NET\Framework\ directory on your computer. Typically, you can only use the compiler in this directory, unless you specify additional path information for compilation.

Note  is the Microsoft Windows directory of your computer and   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 top

Modify 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:

;\ \Microsoft.NET\Framework\

Example:

;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

 Click OK.</ol>

back to the top

Test the Modification
<ol> Click Start, and then click Run.</li> In the Open text box, type the following command, and then press ENTER:

jsc /?

The console appears and contains Jscript .NET compiler options.</li></ol>

back to the top

Troubleshoot

 * 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 top

<div class="references_section">