Page 1 of 1

One doitall button...

PostPosted: 13. April 2007 04:02
by StevenRushing
Is it possible to have one button that turns on apache, mysql, and opens a browser to a default page?

I am setting up a training website for my unit in the army. Each user has his own account, so I am running a portable version of xampp in a networked drive, and would like it to be as simple as possible for the users to access the training website...

thank you for any help! =)

PostPosted: 13. April 2007 04:05
by WorldDrknss
You could create a batch file to achieve this.

PostPosted: 13. April 2007 20:40
by Codesmith
place the following in a text file and change the extension to .bat.

net start apache2.2
net start mysql
"C:\Program Files\Internet Explorer\iexplore.exe" localhost

Earlier versions of apache have a service name of apache2 so run services.msc to see the exact service name.

You can also a domain name other than local host.

net stop apache2.2
net stop mysql

will turn off those services.