xampp-control.exe

Problems with the Windows version of XAMPP, questions, comments, and anything related.

xampp-control.exe

Postby Slobodan Dijakovic » 16. September 2009 21:11

hallo,
I wanted to launch xampp-control.exe from a batch file. it launches xampp-control OK, but the DOS window remains active until I exit xampp-control by pressing Exit button, or close the DOS window explicitly. is there any remedy? :)
appreciate your help.
Slobodan Dijakovic
 
Posts: 4
Joined: 16. September 2009 21:01

Re: xampp-control.exe

Postby Gadrin » 17. September 2009 17:54

Try this in your bat file...

Code: Select all
cmd /c start/min C:\xampp\xampp-control.exe


Just put the full path to your EXE in there if yours is different. Quote it if it has spaces in it.

>
Gadrin
 
Posts: 27
Joined: 08. April 2009 23:43

Re: xampp-control.exe

Postby Slobodan Dijakovic » 17. September 2009 20:05

yeah Gadrin,
thanks for the suggestion: cmd /c start/min C:\xampp\xampp-control.exe
right on!
I'll add another twist; if you execute "setup_xampp.bat" prior to the above command, then you can even do
cmd /c start/min .\xampp\xampp-control.exe, e.g. execute with the relative path.
great and thanks
Slobodan Dijakovic
 
Posts: 4
Joined: 16. September 2009 21:01

Re: xampp-control.exe

Postby Slobodan Dijakovic » 18. September 2009 14:18

hi Gadrin,
I come back for more. always referering to the batch file with cmd /c start/min C:\xampp\xampp-control.exe.
if I start XAMPP with that batch file than first:
curiously FileZilla, Mercury amd Tomcat are dimmed
second
Shell, Setup, Port-Check and SCM button seem to be dead. Explore and Help strangly work.
here's supposatly a picture of that situation:
[img]C:\temp\xampp.jpg[/img]

get this: if I launch XAMPP direcly from ./xampp/xampp-control.exe then all buttons are active and I can proceed in starting whatever I'm pleased.
here's supposatly a picture of that situation:
[img]C:\temp\xampp1.jpg[/img]
by the way, how do I upload an image from my computer?
Slobodan Dijakovic
 
Posts: 4
Joined: 16. September 2009 21:01

Re: xampp-control.exe

Postby Wiedmann » 18. September 2009 15:54

Code: Select all
@echo off
pushd "C:\xampp"
start "" "xampp-control.exe"
popd


or

Code: Select all
@echo off
start "" /D"C:\xampp" "xampp-control.exe"
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: xampp-control.exe

Postby Gadrin » 18. September 2009 16:12

Try having the batch file CD to the xamp-control.exe directory
then run the cmd /c start/min C:\xampp\xampp-control.exe command
and see what happens.

I ran it from a different directory, it starts, but I noticed the message area says
***WARNING Directory mismatch***

If I run

c:
cd c:\xampp
cmd /c start/min C:\xampp\xampp-control.exe


It seems to be working fine.

Is that what you get ? :)


>

Slobodan Dijakovic wrote:hi Gadrin,
I come back for more. always referering to the batch file with cmd /c start/min C:\xampp\xampp-control.exe.
if I start XAMPP with that batch file than first:
curiously FileZilla, Mercury amd Tomcat are dimmed
second
Shell, Setup, Port-Check and SCM button seem to be dead. Explore and Help strangly work.
here's supposatly a picture of that situation:
[img]C:\temp\xampp.jpg[/img]

get this: if I launch XAMPP direcly from ./xampp/xampp-control.exe then all buttons are active and I can proceed in starting whatever I'm pleased.
here's supposatly a picture of that situation:
[img]C:\temp\xampp1.jpg[/img]
by the way, how do I upload an image from my computer?
Gadrin
 
Posts: 27
Joined: 08. April 2009 23:43

Re: xampp-control.exe

Postby Slobodan Dijakovic » 18. September 2009 16:53

yes Gadrin, it works perfectly. no questions asked about why it doesn't work with the previous variant. but, how did you come up with the hunch? you must be a DOS cmd wizard.
this is waht I have:
cd xampp

cmd /c start xampp_start.exe
cmd /c start xampp-control.exe

thanks a lot, Mišo
ps how do I upload an image from my computer to this editor (forum)?
Slobodan Dijakovic
 
Posts: 4
Joined: 16. September 2009 21:01

Re: xampp-control.exe

Postby Gadrin » 18. September 2009 17:06

CMD interpreter is pretty arcane, but fumbling about last year I came upon the
help file that windows provides...

(this is the shortcut to the file on my pc, your path may be different)

Code: Select all
C:\WINDOWS\hh.exe C:\WINDOWS\Help\ntcmds.chm::/ntcmds.htm


So I began messing around with FOR, mainly so I could build a wGET topic downloader
for phpBBS and vBulletin (and other commandline http dealies) and got it to work.
From FOR I wandered over to Command shell overview and learned how to quote
those ampersands in URLs

Code: Select all
 Notes

The ampersand (&), pipe (|), and parentheses ( ) are special characters that must be preceded by the escape character (^) or quotation marks when you pass them as arguments.


And one thing led to another :)

I found a website that shows you how to do math with the CMD interepreter (well, basic math)
and I think for /F will let you process strings so that you can name files with dates in them
that change everyday, and so on.

Some of the FSUTIL stuff is neat, letting you build a file of a certain size instantly.

One of the wizards on another BBS showed me how to mount external drives as folders, so you don't
have to use Drive letters and can mount them under C: or whatever (I think I forgot that stuff, I might
have notes).

I'm still learning :D

>
Gadrin
 
Posts: 27
Joined: 08. April 2009 23:43


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests