Solved

Hiding the XAMPP Start Window

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

This collection of functions covers all the normal rounding methods of just about any numeric value.
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
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…

803 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