How to create an exe that will start both tomcat and web browser when we click on it? i.e. I want to create an exe that will contain startup.bat and Google chrome exe. And after starting execution it should start tomcat as well as google chrome.
I tried this on AutoIt.And written the following script
Run("C:\softwares\apache-tomcat-6.0.35\bin\startup.bat")
But after executing this code tomcat is not getting started, it is just displaying the command prompt for few seconds and then disappearing.
Have you tried AutoIT Scripts? Mostly they are used for malware, but it can also be used constructively. If you have the whole code in a
.batfile, then you can use AutoIT Script.For executing the batch of starting your web server, mysql server and google chrome, you can use this code:
Or, as you said you have a
startup.batfile with you, you can use this code:Hope this helps you.