Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Command Prompt Build Issue

15 Jun 2011   #1
fyasko

Windows 7 Home Premium 32bit
 
 
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 System SpecsSystem Spec
.
15 Jun 2011   #2
Maguscreed

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

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 System SpecsSystem Spec
15 Jun 2011   #3
fyasko

Windows 7 Home Premium 32bit
 
 

Quote:
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!
My System SpecsSystem Spec
.

15 Jun 2011   #4
Maguscreed

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

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 System SpecsSystem Spec
15 Jun 2011   #5
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Did you try typing <path>\build.bat at the prompt?
My System SpecsSystem Spec
15 Jun 2011   #6
Maguscreed

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

that would of course work as well, he seems to have settled the issue.
My System SpecsSystem Spec
Reply

 Command Prompt Build Issue




Thread Tools




Similar help and support threads
Thread Forum
Command Prompt command <ipconfig> not working
when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line: 'ipconfig' is nto recognized as an internal or external command, operable program, or batch file I am trying to find out the information I need in order to set up a static IP Address for port...
Network & Sharing
Windows 8.1 x64 Build 9600 Odd Command Prompt Message.
Hello, I am running a Windows 8.1 x64 Build 9600 HP laptop. Today I decided to uninstall HP Support Utility, as it keeps opening at random times of the day. While uninstalling it however, I got a Command Prompt window saying "1 file(s) copied". I do not know if this is a virus, or if it is supposed...
Chillout Room
SSH command prompt
Is there any way I can use ssh or something similar to enter command line prompts from my Mac terminal, similar to SSH but windows commands? (From mac to a windows 7 desktop)
Performance & Maintenance
Issue with .exe and Command Prompt
Ok, I've done something completely terrible, changed all of my .exe files into something else (By accident, I'm gifted). I was trying to open a .exe file to modify it to allocate more memory to it, Minecraft, and didn't have the right program, it was Java SDK apparently, but could only find Java...
General Discussion
Run administrative command prompt from command prompt
Ok So I got myself into a unique bind here. I was trying to install some custom system files (for a theme) and I did it wrong and now I cant open explorer.exe . I dont want to goto a backup because this is a easy fix. (in my view). So I need to know how to run command prompt with administrative...
General Discussion
Strange Command Prompt Issue
This problem also occurred in build 7264. Whenever I open command prompt, whether it be running it as admin or not, it causes explorer to crash within 15-20 seconds of opening it. Explorer restarts just fine, and the problem will not occur again unless I re-open command prompt. Anyone else...
General Discussion


Our Sites

Site Links

About Us

Find 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 06:19.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App