Need CMD to EXIT wampmanager.exe as if through context menu exit...
Posted by: Wolf_22 (139.102.48.---)
Date: November 18, 2011 10:39PM

Does WAMP 2.2 have a commandline command to exit wampmanager.exe as if one were clicking on the exit context menu upon right-clicking the tiny icon in the taskbar? I'm writing a batch file to exit the thing and at the moment, it's brute-forcing the termination of the wampmanager.exe through taskkill and I don't want to do this for obvious reasons... So I was hoping someone could clue me in on this if possible?

I tried using "wampmanager.exe -quit" but that didn't work...

Options: ReplyQuote
Re: Need CMD to EXIT wampmanager.exe as if through context menu exit...
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: November 18, 2011 11:41PM

Close smiling smiley

its

wampmanager -quit -id={wampserver}


but this is also brute forcing a server shut.

you shoudl really do


net stop wampapache
net stop wampmysqld
wampmanager -quit -id={wampserver}

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Need CMD to EXIT wampmanager.exe as if through context menu exit...
Posted by: Wolf_22 (139.102.48.---)
Date: November 18, 2011 11:56PM

I saw this advice elsewhere but I don't *get* what the "-id={wampserver}" part... Obviously, -id is some switch, but are you saying that "{wampserver}" is replaced with something? And does this mean everything inside the curly braces or everything INCLUDING the curly braces?

And if the wampserver is a proverbial variable of sorts, how does one get this? Is this replaced with localhost or something?

Options: ReplyQuote
Re: Need CMD to EXIT wampmanager.exe as if through context menu exit...
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: November 19, 2011 12:05AM

no the tray menu has an id. becuase you can have mutiple copies of the tray running with different ids. - obviously this is not recommened for wampserver. but the ID is in a file

c:\wamp\wampmanager.tpl

id={wampserver}

it probably was meant to get replaced.. but it doesnt and so you need to write


-id={wampserver} for all wampserver versions

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Need CMD to EXIT wampmanager.exe as if through context menu exit...
Posted by: Wolf_22 (139.102.48.---)
Date: November 19, 2011 08:31PM

Got it working, steven. Thanks!

Options: ReplyQuote


Sorry, only registered users may post in this forum.