Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 306600 - Last Review: June 18, 2003 - Revision: 1.2
HOW TO: Use the JScript .NET Command-Line Compiler from Any Directory
This article was previously published under Q306600
On This Page
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 \
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).
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:
;\System Root\Microsoft.NET\Framework\Version Number
Example: ;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
- Click OK.
Test the Modification
- Click Start, and then click Run.
- In the Open text box, type the following command, and then press
ENTER:
jsc /?
The console appears and contains Jscript .NET compiler options.
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.
REFERENCES
For more information about how to compile JScript code from the
command line, visit the following Microsoft Web site:
APPLIES TO
- Microsoft JScript .NET
- Microsoft .NET Framework 1.1
- Microsoft .NET Framework 1.0
| kbscript kbcompiler kbcommandline kbhowtomaster KB306600 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please