*
The moose likes General Computing and the fly likes auto startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "auto startup" Watch "auto startup" New topic
Author

auto startup

qiu hu
Greenhorn

Joined: May 29, 2011
Posts: 11
Hi, friends
I want to auto start a web application, so first I should start TOMACT ,then start IE ,after that enter a url.then start the application.Now ,I want to deal with these operations in a BAT file . My thinking has any problems? now ,who has the bat's tutorial and some applications .thanks very much!
qiu hu
Greenhorn

Joined: May 29, 2011
Posts: 11
now ,through the MS OS 's set , .tomact can auto start.but how do auto start IE? help me pelease!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

Try something like this in your bat file:



Just change the URL to the one you want to access.

Or try this:



This second method has two advantages: first you don't need to know where IE is installed, but then it uses the default browser and not necessarily IE. And second it doesn't pause the BAT file.


JBoss In Action
qiu hu
Greenhorn

Joined: May 29, 2011
Posts: 11
thank you peter!
your two method all are useful.now I have solve this problem.code:
aaliyah dcunha
Greenhorn

Joined: May 31, 2011
Posts: 10

Peter Johnson wrote:Try something like this in your bat file:



Just change the URL to the one you want to access.

Or try this:



This second method has two advantages: first you don't need to know where IE is installed, but then it uses the default browser and not necessarily IE. And second it doesn't pause the BAT file.


Your code is really helpful and i appreciate your work. i will also use this, Thanks Peter


http://www.chevroletbeat.net/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: auto startup