Command Prompt Build Issue


  1. Posts : 2
    Windows 7 Home Premium 32bit
       #1

    Command Prompt Build Issue


    Hello,

    I am having a general issue with my command prompt and I am not sure how to fix it. I've been working with a Windows Batch File (.bat) that I use to build a program I have been working on. The problem is when I build my program the command prompt will not stay open upon completion of the build. I am not getting any pop-ups suggesting a crash, it just seems to be closing itself. Of course, this would be fine if I were a perfect programmer, however this is not the case. I would really like to see the results of the build so I can assess which errors I have committed. After some time of searching for the answer on numerous websites and search engines, I have turned here for help. Does anyone know how to keep the command prompt open after building programs?

    Any help would be much appreciated!

    Thank you,
    ABA
      My Computer


  2. Posts : 6,668
    Windows 7 x64
       #2

    Have you tried just opening the command window before executing the program?
    The window wants to return to it's previous state after commands are issued, if it was closed when the commands are run it will close after completion.
    However if it was open at the time the program executes it should remain open afterwards.
      My Computer


  3. Posts : 2
    Windows 7 Home Premium 32bit
    Thread Starter
       #3

    Have you tried just opening the command window before executing the program?
    Yes I have tried this.

    Perhaps there is a way to run the "build.bat" file using the command prompt? I have just been double clicking on "build.bat" and it opens the command prompt runs the build then the command prompt closes...

    *EDIT*
    I have resolved the issue. I opened the command prompt, cd'd to the proper folder, and simply typed in the name of the .bat file and it ran/stayed open. Sorry if that was n00bish of me, I am really just unfamiliar with command prompt in general.

    Thank you for the help!
    Last edited by fyasko; 15 Jun 2011 at 19:05. Reason: Issue Resolved
      My Computer


  4. Posts : 6,668
    Windows 7 x64
       #4

    no problem, for any future reference don't include an exit command in your batch file either. As that will close the window also.
      My Computer


  5. Posts : 16,161
    7 X64
       #5

    Did you try typing <path>\build.bat at the prompt?
      My Computers


  6. Posts : 6,668
    Windows 7 x64
       #6

    that would of course work as well, he seems to have settled the issue.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:55.
Find Us