Thread: Simple question...need help!

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    3

    Simple question...need help!

    Hello,

    I'm new at all this, so sorry if my explanations aren't clear or my terminology isn't correct. I'm taking C programming, i've only had 3 classes so far so bear with me heh.

    So basically I'm trying to find a way to be able to run my compiler from any directory the DOS command line is set to, the same way I can run 'notepad' or 'calc' from any directory i'm in.

    I just want to be able to run my compiler, bcc32, without always having to point to the directory where it's installed. I can do this at the computer lab at school--so i'm assuming that it is possible.

    Is there a way to do this BESIDES moving the compiler into the system32 folder?

    I'm on windows XP, MCE


    thanks!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    http://faq.cprogramming.com/cgi-bin/...&id=1043284351
    Scroll down to "Step 2: Configure the Tools"
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    3
    awesome, thanks!

    also, one more question...

    I guess I shouldve been taking notes, but I remember there was way for the program to run dos commands....


    i.e.

    he wrote a program with a line that I THOUGHT was just

    notepad;

    and it opened notepad when ran,


    when i try to compile that though, it gives me an error. Is there a way to run actual dos commands rather than using fopen and pointing to the path?

  4. #4
    Registered User
    Join Date
    Sep 2007
    Posts
    3
    nevermind, got it!

    system("notepad")

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple question regarding variables
    By Flakster in forum C++ Programming
    Replies: 10
    Last Post: 05-18-2005, 08:10 PM
  2. Simple class question
    By 99atlantic in forum C++ Programming
    Replies: 6
    Last Post: 04-20-2005, 11:41 PM
  3. Simple question about pausing program
    By Noid in forum C Programming
    Replies: 14
    Last Post: 04-02-2005, 09:46 AM
  4. simple question.
    By InvariantLoop in forum Windows Programming
    Replies: 4
    Last Post: 01-31-2005, 12:15 PM
  5. simple fgets question
    By theweirdo in forum C Programming
    Replies: 7
    Last Post: 01-27-2002, 06:58 PM