Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 24th, 2005, 12:47 AM
Mark
Guest
 
Posts: n/a
Default Launching the correct app from URL

Hi All

I'm building some database queries that send reports in HTML format via
e-mail. One of the fields in the report is the name of a customer
activity log (which is a specially formatted text file with a ".ber"
extension).

What I need to do is somehow write the URL (e.g.
file://D:/Reports/123456.ber) so that when it's clicked, it opens a
text editor that understands the syntax (Textpad 4 with Syntax def
file).

Right now, it just opens the file in the browser window. (The end
result should be the same behavior as when I double click the file in
windows explorer (i.e. open it in associated app)

Anyone know a simple way of configuring which app to use to view
specific file types in IE6 on Windows?

Any ideas how to do this without code (don't mind scripts, or registry
changes, but I'm not going to start writing an ActiveX plug-in to do
it)?

TIA

Mark

  #2  
Old July 24th, 2005, 12:47 AM
me
Guest
 
Posts: n/a
Default Re: Launching the correct app from URL

"Mark" <mark.anderson.us@gmail.com> wrote in message
news:1110554183.150550.91170@z14g2000cwz.googlegro ups.com...[color=blue]
> Hi All
>
> I'm building some database queries that send reports in HTML format via
> e-mail. One of the fields in the report is the name of a customer
> activity log (which is a specially formatted text file with a ".ber"
> extension).
>
> What I need to do is somehow write the URL (e.g.
> file://D:/Reports/123456.ber) so that when it's clicked, it opens a
> text editor that understands the syntax (Textpad 4 with Syntax def
> file).
>
> Right now, it just opens the file in the browser window. (The end
> result should be the same behavior as when I double click the file in
> windows explorer (i.e. open it in associated app)
>
> Anyone know a simple way of configuring which app to use to view
> specific file types in IE6 on Windows?
>
> Any ideas how to do this without code (don't mind scripts, or registry
> changes, but I'm not going to start writing an ActiveX plug-in to do
> it)?
>
> TIA
>
> Mark[/color]

Hi Mark: Are you trying to launch Textpad 4 on your machine, a visitors
machine or both?
Signed,
me


  #3  
Old July 24th, 2005, 12:48 AM
Mark
Guest
 
Posts: n/a
Default Re: Launching the correct app from URL

Hi Me

I'm trying to Launch IE on my machine (the machine where the UA runs)

Regards

Mark

me wrote:[color=blue]
> "Mark" <mark.anderson.us@gmail.com> wrote in message
> news:1110554183.150550.91170@z14g2000cwz.googlegro ups.com...[color=green]
> > Hi All
> >
> > I'm building some database queries that send reports in HTML format[/color][/color]
via[color=blue][color=green]
> > e-mail. One of the fields in the report is the name of a customer
> > activity log (which is a specially formatted text file with a[/color][/color]
".ber"[color=blue][color=green]
> > extension).
> >
> > What I need to do is somehow write the URL (e.g.
> > file://D:/Reports/123456.ber) so that when it's clicked, it opens a
> > text editor that understands the syntax (Textpad 4 with Syntax def
> > file).
> >
> > Right now, it just opens the file in the browser window. (The end
> > result should be the same behavior as when I double click the file[/color][/color]
in[color=blue][color=green]
> > windows explorer (i.e. open it in associated app)
> >
> > Anyone know a simple way of configuring which app to use to view
> > specific file types in IE6 on Windows?
> >
> > Any ideas how to do this without code (don't mind scripts, or[/color][/color]
registry[color=blue][color=green]
> > changes, but I'm not going to start writing an ActiveX plug-in to[/color][/color]
do[color=blue][color=green]
> > it)?
> >
> > TIA
> >
> > Mark[/color]
>
> Hi Mark: Are you trying to launch Textpad 4 on your machine, a[/color]
visitors[color=blue]
> machine or both?
> Signed,
> me[/color]

  #4  
Old July 24th, 2005, 12:49 AM
me
Guest
 
Posts: n/a
Default Re: Launching the correct app from URL

"Mark" <mark.anderson.us@gmail.com> wrote in message
news:1110639502.896429.82890@g14g2000cwa.googlegro ups.com...[color=blue]
> me wrote:[color=green]
> > "Mark" <mark.anderson.us@gmail.com> wrote in message
> > news:1110554183.150550.91170@z14g2000cwz.googlegro ups.com...[color=darkred]
> > > Hi All
> > >
> > > I'm building some database queries that send reports in HTML format[/color][/color]
> via[color=green][color=darkred]
> > > e-mail. One of the fields in the report is the name of a customer
> > > activity log (which is a specially formatted text file with a[/color][/color]
> ".ber"[color=green][color=darkred]
> > > extension).
> > >
> > > What I need to do is somehow write the URL (e.g.
> > > file://D:/Reports/123456.ber) so that when it's clicked, it opens a
> > > text editor that understands the syntax (Textpad 4 with Syntax def
> > > file).
> > >
> > > Right now, it just opens the file in the browser window. (The end
> > > result should be the same behavior as when I double click the file[/color][/color]
> in[color=green][color=darkred]
> > > windows explorer (i.e. open it in associated app)
> > >
> > > Anyone know a simple way of configuring which app to use to view
> > > specific file types in IE6 on Windows?
> > >
> > > Any ideas how to do this without code (don't mind scripts, or[/color][/color]
> registry[color=green][color=darkred]
> > > changes, but I'm not going to start writing an ActiveX plug-in to[/color][/color]
> do[color=green][color=darkred]
> > > it)?
> > >
> > > TIA
> > >
> > > Mark[/color]
> >
> > Hi Mark: Are you trying to launch Textpad 4 on your machine, a[/color]
> visitors[color=green]
> > machine or both?
> > Signed,
> > me[/color]
>
> Hi Me
> I'm trying to Launch IE on my machine (the machine where the UA runs)
> Regards
> Mark[/color]

You cannot open a file in IE that it is not associated with. You could
associate the file type with IE by choosing a file with that extension and
then choosing "open" in the file window of IE, then clicking "Browse", then
click the drop down next to the file type and then browse to the file you
want to open. I suggest that you do not choose to permanently associate this
file type with IE until after you successfully open the file in IE, to
prevent this uncheck "Always choose this program to open this file".

The following will not launch IE but it may open the file if Textpad 4 is
associated with that file type on your machine. See below for the syntax of
a link to the file you mentioned:
Good Luck,
me

<a href="file:///D:/Reports/123456.ber">Reports</a>


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles