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: running bat file spawns multiple command prompts

20 Apr 2010   #1
mrdavidn3

windows 7
 
 
running bat file spawns multiple command prompts

I am running a mvn batch file under windows 7 and within the batch file another batch file is being called. This causes a new command prompt to be spawned and to immediately disappear with execution finishes.

The problem is the 2nd window is displaying errors that I cannot read before the window closes - I cannot pause it, and I can't redirect output to a file.

My only option has been to run these files on an XP where everything runs in one command prompt window and I can read the output. But this is becoming a problem.

Does anybody know how to keep windows 7 from spawning new command prompt windows when a batch file is 'called' from another batch file?

thanks


My System SpecsSystem Spec
.
20 Apr 2010   #2
Dwarf

Windows 8.1 Pro RTM x64
 
 

Hi mrdavidn3 and welcome to Windows 7 Forums

What is the batch file? It may need a bit of a rewrite. Can you attach it as a .zip attachment to your reply and we'll have a look at it.
My System SpecsSystem Spec
20 Apr 2010   #3
CarlTR6

Windows 7 Ultimate 32 bit
 
 

Can you show us the coding of the batch file (s)?
My System SpecsSystem Spec
.

20 Apr 2010   #4
CarlTR6

Windows 7 Ultimate 32 bit
 
 

Sorry, Dwarf; we were typing at the same time. It's all yours.
My System SpecsSystem Spec
20 Apr 2010   #5
Dwarf

Windows 8.1 Pro RTM x64
 
 

Lol, no probs. Until we get a reply, we've nothing to go on.
My System SpecsSystem Spec
Reply

 running bat file spawns multiple command prompts




Thread Tools




Similar help and support threads
Thread Forum
Some errors about running the command automatically before shut down
A program often block the computer to shut down, so I want to run the command before shut down. I run the bat : taskkill /f /im ZuoYou.exe And I do the follow http://i730.photobucket.com/albums/ww309/ytyyutianyun/YUYUXUAN-PC/photobucket/Ashampoo_Snap_20131130_08h18m59s_001_.jpg...
General Discussion
How can I find the list of command prompts for Windows 7
Could you please direct me to a place where I can find a complete list of "command prompts" for Window 7 Home Premium? Thank you
General Discussion
chkdsk command prompts
Hello Win 7 If chkdsk will not run when you click error check at Computer, what is the command prompt that will do it instead. I am looking for the two replacements only. One is the default with one check at computer and the second is if you were to insert a check at the default at...
Performance & Maintenance
32 bit command prompt running on a 64 bit version of windows
Hi I'm running windows 7 home premium 64 bit, but whenever a program uses command prompt it says system 32 i.e. Booting up. can you tell me why this is happening and can you help me fix it?
General Discussion
Running an elevated command prompt (from the Recovery DVD)
Long story short, I've been trying to dual-boot W7 with Ubuntu. Failed. Now I cannot boot up Windows, and though there are hundreds of forum articles explaining how to fix this (using the Bootrec/bcdedit commands in the Windows RE command prompt), but I can't run either of them (get an error). My...
General Discussion
Running command prompt commands elsewhere...
I am trying to configure RightMark Clock Utility to execute the "start" command when the power source for my computer changes. For example, I would want to run this: start /MIN "" "C:Path\to\Program" I am choosing the start command because it gives me the option to use the /min parameter. ...
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 07:26.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App