The Desktop class opens a URL in the user's default browser when using the open() method. How can a URL be opened in IE even when IE is not the default browser?
Edit: Solutions do not have to use the Desktop class. I was using that as an example.
Try invoking, in System.exec()
iexplore.exe 'http://my.url'
, which is the name of Internet explorer executable.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.