Solved

Hiding the XAMPP Start Window

Posted on 2009-06-29
5
2,579 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
  • 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now