Accessing web pages direct from the Browser.

Status
Not open for further replies.

Kelman Don

Usenet Archive
Joined
Jan 11, 2002
Messages
1
Reaction score
0
Does anyone know the keyin for connecting the browser to a specific file. ie

The keyin for the browser is "Browser connect". I then want it to open a specific file on the such as C:\test.htm.

Any pointers?

Dave
 
This is probably a really bad way of doing it, this is how I do it from NT with a pulldown menu in the help section of Microstation

First ensure that ntbang.ma is loaded

Then create a pull down with the command

! M:\cad\cad_standards\iexplore.bat

The contents of my iexplore.bat is as follows

"c:\program files\plus!\microsoft internet\iexplore.exe" -nohome file://M:\cad\cad_standards\index.html exit

Now there are two problems.

First, a command box is opened and IEXPLORE is run from that. When you close IE, you get back to the command box, so you have to close that as well

Second problem, if a Microstation Splash Screen is created (Like and MDL abort), the command box cannot be closed so it alls goes a bit pear shaped

But it works

(P.S. any better ideas greatly appreciated)
(PPS I have no idea how I got the syntax for the command line)

Anthony Cox
RBDG
 
Kelman and Anthony,

Below is listed some command lines from a sidebar menu I have created. I have not had any problems with dos boxes remaining open.

Note I have incorporated the 'start' command with some of the programs. They run within their own environment thereby not locking MicroStation until those programs are ended.

(NOTE: Watch out for line wrapping, some of the command lines are very long. I've put blank lines between each command line to help separate them).

;=========================================================================== ; Sample sidebar menu command lines ;--------------------------------------------------------------------------- 'Help Basic ','T,!start
C:/Bentley/Program/MicroStation/docs/BASICHLP.hlp' /NOSAVE /COLOR=(01,00)

'Help EDG ','T,!start C:/Bentley/Program/MicroStation/docs/EDG.hlp' /NOSAVE /COLOR=(01,00)

'Help ImageMGR ','T,!start
C:/Bentley/Program/MicroStation/docs/IMGMNGR.hlp' /NOSAVE /COLOR=(01,00)

'Help MDE ','T,!start
C:/Bentley/Program/MicroStation/docs/MDEHELP.hlp' /NOSAVE /COLOR=(01,00)

'Help MS/J ','T,!start
C:/Bentley/Program/MicroStation/docs/USTNHELP.hlp' /LINE /NOSAVE /COLOR=(01,00)

'Help MS95pdf ','T,!EXPLORER K:\\SUPPORT\\MS\\95\\DOCS\\READFRST.PDF' /LINE /NOSAVE /COLOR=(07,00)

'W Calculator ','T,!start calc' /NOSAVE /LINE /NOSAVE /COLOR=(02,05)

'Unit Convert ','T,!start c:\\batch\\convert' /LINE /NOSAVE /LINE /NOSAVE /COLOR=(02,05)

'USMA Metric ','T,!EXPLORER http://lamar.colostate.edu/~hillger/' /LINE /NOSAVE

'Keditw Temp ','T,!c:\\batch\\kw.bat temp.txt' /NOSAVE /COLOR=(53,00)

'Backup Temp ','T,!copy temp.txt temp.bak' /NOSAVE /COLOR=(53,00)

'Delete Temp ','T,!del temp.txt' /NOSAVE /COLOR=(53,00)

'Dir Temp ','T,!explorer /e ,/select, temp.txt' /LINE /NOSAVE /COLOR=(53,00)

'Excel Scratch ','T,!START EXCEL' /LINE /NOSAVE /COLOR=(06,01)

'NEWS-ccm ','T,!explorer
/NOSAVE /COLOR=(07,02)

'NEWS-ccmp ','T,!explorer
/LINE /NOSAVE
/COLOR=(07,02)

'G\047Sear-ccm* ','T,!start iexplore
http://groups.google.com/groups?as_ugroup=comp.cad.microstation.*' /LINE /NOSAVE /COLOR=(07,02)

'G\047SearchNet ','T,!explorer
http://groups.google.com/advanced_group_search' /LINE /NOSAVE /COLOR=(05,00)

'Google-ccm ','T,!start iexplore
http://groups.google.com/groups?as_ugroup=comp.cad.microstation' /LINE /NOSAVE /COLOR=(05,02)

'Google-ccmp ','T,!start iexplore
http://groups.google.com/groups?as_ugroup=comp.cad.microstation.programmer'/ LINE /NOSAVE /COLOR=(05,02)

'Google-excel ','T,!start iexplore
http://groups.google.com/groups?as_ugroup=microsoft.public.excel' /LINE /NOSAVE /COLOR=(05,02)

'G\047Search(q=_) ','k,!start iexplore www.google.com/search?q='/LINE /NOSAVE

'G\047alt.msdos ','T,!start iexplore
http://groups.google.com/groups?as_ugroup=alt.msdos.batch' /LINE /NOSAVE /COLOR=(06,00)

'WinExpl DGN ','mdl l calculat;!explorer /e ,/select, {tcb->dgnfilenm}' /LINE /NOSAVE /COLOR=(02,01)

'<Novell ReLog ','T,!%SystemRoot%\\System32\\loginw32.exe' /LINE /NOSAVE

'< EDIT-SBM______','T,!START C:\\S-BARS\\DOCUM.SBM' /LINE /NOSAVE /COLOR=(08,00)

;---------------------------------------------------------------------------

HTH
Chuck Gummo

;---------------------------------------------------------------------------

"Anthony Cox" wrote:

This is probably a really bad way of doing it, this is how I do it from NT with a pulldown menu in the help section of Microstation

First ensure that ntbang.ma is loaded

Then create a pull down with the command

! M:\cad\cad_standards\iexplore.bat

The contents of my iexplore.bat is as follows
...
close
IE, you get back
to the command box, so you have to close that as well

Second problem, if a Microstation Splash Screen is created (Like and MDL abort), the command box cannot be closed so it alls goes a bit pear shaped

But it works

(P.S. any better ideas greatly appreciated)
(PPS I have no idea how I got the syntax for the command line)
...
 
The configuration variable MS_WEBPAGE_HOME can be defined to "file:///c:/test.htm" and then whenever the browser is opened, it opens to that page. If you want a different page, a macro can re-define the variable to a different file. There may be another way, but I don't know it.

"Kelman, Don" wrote:
Does anyone know the keyin for connecting the browser to a specific file. ie

The keyin for the browser is "Browser connect". I then want it to open a specific file on the such as C:\test.htm.

Any pointers?

Dave
 
Status
Not open for further replies.

Latest threads

Back
Top