CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2005
    Posts
    181

    Compiling Programs from Dos Window

    Hi there,

    I am trying to follow the tutorial

    http://www.functionx.com/visualc/com...ne/cmdline.htm

    At step 2 when I type "C:\>CD Program Files\Microsoft Visual Studio\VC98\Bin" I get the error message "C:\" is not recognizes as internal or external command?

    I am using windows XP SP3 and the free verison of Microsoft Visual Studio 8.

    Thanks

    Ba\

  2. #2
    Join Date
    Jun 2005
    Posts
    315

    Re: Compiling Programs from Dos Window

    when I type "C:\>CD Program Files\Microsoft Visual Studio\VC98\Bin"
    Looks like you're simply doing a Change Directory command. You don't have to type the c:\> as it should already be there, you just type the CD ProgramFiles\.... part. And this is all based on the assumption that the path you type in exists.

  3. #3
    Join Date
    Jan 2002
    Location
    Houston, TX
    Posts
    1,421

    Re: Compiling Programs from Dos Window

    In addition to what jeron said, since there are spaces in the name, you'll have to enclose the entire path in quotes:
    Code:
    cd "Program Files\Microsoft Visual Studio\VC98\Bin"
    Hope that helps.
    Be sure to rate those who help!
    -------------------------------------------------------------
    Karl - WK5M
    PP-ASEL-IA (N43CS)
    PGP Key: 0xDB02E193
    PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

  4. #4
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Compiling Programs from Dos Window

    Or type cd program and then press tab, add a backslash and type micro and tab until VC dir is shown and so on...
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  5. #5
    Join Date
    Jun 2005
    Posts
    315

    Re: Compiling Programs from Dos Window

    Or type cd program and then press tab, add a backslash and type micro and tab until VC dir is shown and so on...
    Cool, I didn't know that.

  6. #6
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Compiling Programs from Dos Window

    I think it's default console behaviour from XP and forward (can't remember if I've changed it myself)

    If not just edit HKEY_CURRENT_USER\Software\Microsoft\Command Processor - CompletionChar and set it to 9

    EDIT: Probably is default since HKEY_USERS\.DEFAULT\Software\Microsoft\Command Processor is set to 9 as well and I doubt that I've changed that key.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  7. #7
    Join Date
    Jun 2005
    Posts
    315

    Re: Compiling Programs from Dos Window

    I think it's default console behaviour from XP and forward
    Yeah, it looks like it is.
    A nice little feature that I'll using a lot.

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

Featured