Page 1 of 1

xampp-control.exe

PostPosted: 16. September 2009 21:11
by Slobodan Dijakovic
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.

Re: xampp-control.exe

PostPosted: 17. September 2009 17:54
by Gadrin
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.

>

Re: xampp-control.exe

PostPosted: 17. September 2009 20:05
by Slobodan Dijakovic
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

Re: xampp-control.exe

PostPosted: 18. September 2009 14:18
by Slobodan Dijakovic
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?

Re: xampp-control.exe

PostPosted: 18. September 2009 15:54
by Wiedmann
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"

Re: xampp-control.exe

PostPosted: 18. September 2009 16:12
by Gadrin
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?

Re: xampp-control.exe

PostPosted: 18. September 2009 16:53
by Slobodan Dijakovic
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)?

Re: xampp-control.exe

PostPosted: 18. September 2009 17:06
by Gadrin
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

>