Hiding the XAMPP Start Window

On Windows XP/Vista
I have written a .bat file with
the following line in it :
START xampp_start.exe
It launches xampp but the command window in which
it is launched is also visible.
How to hide that window?

Or alternatively :
I am starting an application under XP with a .bat file. How can I prevent this windows from being shown or how can I start the program otherwise?
LVL 1
dtivmkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

edster9999Commented:
Starting it from the command line is the best way to do it.  You get error messages if there is any problem starting up and you know it starts.

Save your batch file on the PC (not in the startup group if you have put it there).
Create a shortcut (either ont he desktop or in the sartup group) by right clicking and selecting 'new' and 'shortcut'
Select the batch file in the target box
and change 'run' to minimzed.
click 'change icon' if you want it to look nice
and then click OK


0
dtivmkAuthor Commented:
My bat file(a.bat) looks like this :

command1
command2
START xampp_start.exe
command 4
command 5

I create a shortcut to a.bat on my desktop and select run to minimized.
But that will not minimize the xampp_start window, since
xampp_start.exe starts in a window of its own.
0
edster9999Commented:
Sorry - I misunderstood the question.  I thought you did not want to see the batch file window.

Then all you need is /MIN on the start command :

start /MIN xampp_start.exe

If you need to specify the path to the command you can do that with /D and /B :

start /MIN /D"C:\Program Files\xampp" /B xampp_start.exe

Note there is no space after the '/D' bit

0
dtivmkAuthor Commented:
So, I have created a file
a.bat which has :
START /MIN /D"C:\xampp\" /B xampp_start.exe

Now when I launch it, a dos window opens with the following written in it :
-----C:\Documents and Settings\dharm\Desktop>START /MIN /D"C:\xampp\" /B xampp_start.exeDiese Eingabeforderung nicht waehrend des Runnings beenden ...Zum stoppen bitte die xampp_stop benutzen!Please do not close this window while running ...Use the xampp_stop for shutdown!Please wait [Bitte warten] ...---### APACHE + MYSQL IS STARTING NOW ###
----------

But this window is still maximized and not minimized.
Though what I want is that this window should not even be visible,
whether minimized or maximized.

 
0
edster9999Commented:
You need to combine the two things above.

The /min bit will make the xampp window run minimized.  This part is running in a batch file in a command window so the trick about creating a shortcut to that one and setting 'run minimized' in the shortcut will keep that window minimized.

This should start the service and its batch file as minimized windows.
Now they are not totally invisable... they are still there as minimized programs down on the task bar.

If you do not want to see them at all.... then you have 2 options.
1. Run the graphical control panel version instead of the command line verison.  I dont htink you can start this automatically so you'll have to run it and click start buttons.
2. Format your hard disk and load linux and the linux versions of these apps.  They work fine in the back ground and you'll never see them.  Now this sounds a little hard but you could consider running linux in a Virtual machine under windows or something like that.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.