Results 1 to 6 of 6

Thread: Environment Variables for compiling from the Command Line

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Environment Variables for compiling from the Command Line

    I had this link lost it when re-installing my machine

    Need to know the different environment variables to set to compile C#, C++, etc applications from the command line without having to type in the path to the compiler.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Environment Variables for compiling from the Command Line

    Moved from CodeBank.

  3. #3
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Environment Variables for compiling from the Command Line

    you have to put the path to csc or what it is called again into the Path env. var.


    This is how you add the path:
    Goto "System Property" by right click on your "My Computer", left click on "Property"

    Goto "Advanced" tab

    Click on "Environment Variables..." (alt+e)

    you should be able to find variable "Path" in your "System Variables". Edit variable "Path" by typing "; C:\System\..." to the end of the variable value. (where "C:\System\..." is the folder location of your csc.exe)

    "OK" to close all dialogs.


    Hope that helps.
    - ØØ -

  4. #4
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: Environment Variables for compiling from the Command Line

    Usually, csc.exe and vbc.exe is in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 for WinXP and C:\WINNT\Microsoft.NET\Framework\v1.1.4322 for Win2k. Dunno of 9x, though. An oh, usually I do it like setting NET_FRAMEWORK name and adding it to Path as ;NET_FRAMEWORK. This way, we can just edit our NET_FRAMEWORK to point to a new version.

  5. #5

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Environment Variables for compiling from the Command Line

    I see if you installed VS, then you are set with the environment variables.
    will check out the different settings later and if I remember post them here for future reference.....
    should one be able to create a batch file to register all the environment variables? never really did batch files, but want to for all kind of miscelaneous (spelling?) task
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Environment Variables for compiling from the Command Line

    Download the Net SDK Samples. It includes help pages. I even compiled a C# program by following the step by step instructions, when I didn't think I even had a C# compiler.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width