1.

Solve : Closing Batch File Window?

Answer»

sorry my thoughts must have been partialy else were at the time. I ment to say that I think were he had his EXIT wasnt in the right part of it. In such I could have ms paint exit it would close after I EXITED paint vs if I some how modified it to be before that. Still learning myself so I cant say if it would work, was a suggestion. Also, I ment if you tell them what do they learn all together. hardly anything.Thanks, Carbon. Unfortunately, in the process you posted, the line "START C:\MULTIPSK\" only opens the directory MultiPSK instead of STARTING multipsk.exe. Also, the batch window still remains open after the batch file is complete.

MultiPSK is an amateur radio application used for the reception and transmission of various digital radio formats, such as Radioteletype. The other apps are in support of that, such as Windows volume controls.

Thanks


START "" "C:\Ham Radio\Pathfinder\Pathfinder.exe"
Sleep 3
START "" "C:\Ham Radio\DXView\DXView.exe"
START "" "C:\Ham Radio\DXKeeper\DXKeeper.exe"
Sleep 7
START "" "C:\Ham Radio\Commander\CI-V Commander.exe"
Sleep 3
START C:\MULTIPSK\
Sleep 3
START "" "C:\Ham Radio\Launcher\Sound.bat"
START "" "C:\Ham Radio\QuickMix\QuickMix.exe"
EXITIt would be Start "" "C:\Multipsk\multipsk.exe" then.

Edit the path accordingly. That's what I suspected, and did just that. The batch window still remains open, however.

Just tried ending the script with ^C, hoping Control-C might close the window. No such luck.

Not the end of the world with the window open - just end up with a lot of stuff cluttering up the task bar!

Thanks!
Can you confirm all 7 programs started successfully?

Are you running the commands with @echo on or off? (or SIMPLY without @echo on/off)All applications start perfectly. I have no command for echo at all in the script.

Then you should see the commands in the command prompt window, right?

From what you have told me so far, it sounds like one program is not starting, thus making the window hang.

Try experimenting with a few of those commands at a time instead of having one batch file for all of them.Yes, I see each command as it executes.

I'll experiment and see what I can find.
Thanks
Quote from: Doc16743 on May 27, 2009, 05:50:23 AM

Yes, I see each command as it executes.

I'll experiment and see what I can find.
Thanks

Try adding @echo off to the beginning of your script. Or, adding PAUSE between each line, so you know if there's a problem within your script.I should have figured that, sorry about that at least you know it WORKS for the most part.Problem solved. Apparently the line
START "" "C:\Ham Radio\Launcher\Sound.bat"
was causing the problem. Removing the command to start another batch file and putting the commands from that file into this one allows the window to close now.

Thanks to those that helped.

Thanks, also, to the Department of Sarcasm for the lack of help.


Discussion

No Comment Found