Solved

Hiding the XAMPP Start Window

Posted on 2009-06-29
5
3,045 Views
Last Modified: 2012-06-21
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?
0
Comment
Question by:dtivmk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 20

Expert Comment

by:edster9999
ID: 24734241
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
 
LVL 1

Author Comment

by:dtivmk
ID: 24734505
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
 
LVL 20

Expert Comment

by:edster9999
ID: 24734534
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
 
LVL 1

Author Comment

by:dtivmk
ID: 24736475
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
 
LVL 20

Accepted Solution

by:
edster9999 earned 500 total points
ID: 24736586
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

Featured Post

Turn Insights Into Action

You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.

With xMatters, you'll never miss a beat.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question