Launching a browser

  • Thread starter Thread starter Alan M Dunsmuir
  • Start date Start date
Larry,
And what to do when he doesn't use IE?

Exactly therefore it was not a "best" answer, however better than nothing.

(I stopped with the chalenge by the way to much typing, I go first using the
DLL)

:-)

Cor
 
Larry

And because suddenly everybody (excluding you) started to talk about IE,
while it was in the beginning the Defaul Browser where Ken's first answer
did directly fit in my opinion (except that IE in that case is stealing the
acrtive browser).

Cor
 
Herfried K. Wagner said:
The "best" solution for launching /MSIE/ with a certain webpage in a new
window is IMO:

If MSIE is the desired browser, then it gets even simpler:

Shell("explorer http://www.google.com")

As long as we're on the topic, there are quite a few views that can be
gotten from that same syntax (which was brought forward from VB6).
So, just for reference, here are all that I've found so far:

Private Const sysIExplorer$ = ", ::{871C5380-42A0-1069-A2EA-08002B30309D}"
Private Const sysNetworkPlaces$ = ", ::{208D2C60-3AEA-1069-A2D7-08002B30309D}"
Private Const sysRecycleBin$ = ", ::{645FF040-5081-101B-9F08-00AA002F954E}"
Private Const sysTasks$ = ", ::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}"

Private Const sysComputer$ = ", ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
Private Const sysDesktop$ = sysComputer & " /select,"

Private Const sysDocuments$ = ", ::{450D8FBA-AD25-11D0-98A8-0800361B1103}"
Private Const sysFax$ = sysDocuments & "\Fax"
Private Const sysPictures$ = sysDocuments & "\My Pictures"

Private Const sysControlPanel$ = sysComputer & "\::{21EC2020-3AEA-1069-A2DD-08002B30309D}"
Private Const sysAdminTools$ = sysControlPanel & "\::{D20EA4E1-3957-11d2-A40B-0C5020524153}"
Private Const sysConnections$ = sysControlPanel & "\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}"
Private Const sysFonts$ = sysControlPanel & "\::{D20EA4E1-3957-11d2-A40B-0C5020524152}"
Private Const sysPrinters$ = sysControlPanel & "\::{2227A280-3AEA-1069-A2DE-08002B30309D}"


For an example, to call up the Control Panel:

Shell("explorer " & sysControlPanel, AppWinStyle.NormalFocus)

Now, the question is, do they also work on your foreign language OS?

LFS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top