Solved

Hiding the XAMPP Start Window

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
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…

734 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