Microsoft Knowledge Base Email Alertz

KBAlertz.com: (306600) - 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...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








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

  1. Right-click Start, and then click Explore.
  2. In the left pane, right-click My Computer, and then click Properties.
  3. Click the Advanced tab, and then click Environment Variables.
  4. Under System Variables, click Path and then click Edit.
  5. 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
  6. Click OK.

Test the Modification

  1. Click Start, and then click Run.
  2. 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:
http://msdn.microsoft.com/en-us/library/7435xtz6.aspx (http://msdn.microsoft.com/en-us/library/7435xtz6.aspx)

APPLIES TO
  • Microsoft JScript .NET
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
Keywords: 
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