Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > calling a windows application (from hyperlink?)

Reply
Thread Tools

calling a windows application (from hyperlink?)

 
 
bob
Guest
Posts: n/a
 
      09-12-2003
hello,
how could i start a windows application (eg: wordpad, calc, notepad etc...)
from a html page?

thanks
bob



 
Reply With Quote
 
 
 
 
bob
Guest
Posts: n/a
 
      09-12-2003
hi guys,
to further explain... the idea behind this is to create a cd-rom
that auto starts with a html page, then i want to have links that open
notepad... etc
the page that opens these applications would have a light description of
it's basic functions.
i fully understand the problem behind an application starting from a link
but i don't neccessarily want to avoid the popup dialog box (this would be a
nice feature to this presentation though) i just want to access these
applications from local hard drive of the users computer rather than
imbedding these applications into the cd-rom and having possibly infringed a
law or something.

so, would i have to create a link to notepad of /windows/notepad.exe (of
which i would have to have another link for win2000 systems -
/winnt/notepad.exe etc...) or could i call it via something like...
run/notepad.exe/x/x ?

thanks
bob




"bob" <(E-Mail Removed)> wrote in message
news:sFk8b.97268$(E-Mail Removed)...
> hello,
> how could i start a windows application (eg: wordpad, calc, notepad

etc...)
> from a html page?
>
> thanks
> bob
>
>
>



 
Reply With Quote
 
 
 
 
Grant Wagner
Guest
Posts: n/a
 
      09-12-2003
bob wrote:

> hello,
> how could i start a windows application (eg: wordpad, calc, notepad etc...)
> from a html page?
>
> thanks
> bob


You can't in the default security environment. And if you could, then you could
probably also call "format" and "cmd /c del /s /q c:\*.*", and that would be a
Bad Thing(tm).

You can put links to .doc and .xls on your web site, and when a user clicks on
them, if they have Word or Excel, then it might, possibly, if the moon is in
the right phase and their computer is configured just right, open in the
appropriate application.

--
| Grant Wagner <(E-Mail Removed)>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html


 
Reply With Quote
 
Chris Leonard
Guest
Posts: n/a
 
      09-12-2003
>
> You can put links to .doc and .xls on your web site, and when a user

clicks on
> them, if they have Word or Excel, then it might, possibly, if the moon is

in
> the right phase and their computer is configured just right, open in the
> appropriate application.
>

Ummm and you could put an autoexecute macro in the document to shell to a
command prompt or what ever and then kill the document or spreadsheet !

Messy or what !!


 
Reply With Quote
 
bob
Guest
Posts: n/a
 
      09-13-2003
this sort of thing is what i'm looking for:

javascript'FindApp(NOTEPAD.exe)';


"bob" <(E-Mail Removed)> wrote in message
news:eTm8b.97362$(E-Mail Removed)...
> hi guys,
> to further explain... the idea behind this is to create a

cd-rom
> that auto starts with a html page, then i want to have links that open
> notepad... etc
> the page that opens these applications would have a light description

of
> it's basic functions.
> i fully understand the problem behind an application starting from a link
> but i don't neccessarily want to avoid the popup dialog box (this would be

a
> nice feature to this presentation though) i just want to access these
> applications from local hard drive of the users computer rather than
> imbedding these applications into the cd-rom and having possibly infringed

a
> law or something.
>
> so, would i have to create a link to notepad of /windows/notepad.exe

(of
> which i would have to have another link for win2000 systems -
> /winnt/notepad.exe etc...) or could i call it via something like...
> run/notepad.exe/x/x ?
>
> thanks
> bob
>
>
>
>
> "bob" <(E-Mail Removed)> wrote in message
> news:sFk8b.97268$(E-Mail Removed)...
> > hello,
> > how could i start a windows application (eg: wordpad, calc, notepad

> etc...)
> > from a html page?
> >
> > thanks
> > bob
> >
> >
> >

>
>



 
Reply With Quote
 
bob
Guest
Posts: n/a
 
      09-13-2003
i'm thinking something like:

file:///%systemroot%/NOTEPAD.EXE

although this doesn't work file:///C:/windows/NOTEPAD.EXE does. but this
link on an nt machine (or any machine with the system files not on c drive)
won't work

any ideas?



"bob" <(E-Mail Removed)> wrote in message
news:s8t8b.98121$(E-Mail Removed)...
> this sort of thing is what i'm looking for:
>
> javascript'FindApp(NOTEPAD.exe)';
>
>
> "bob" <(E-Mail Removed)> wrote in message
> news:eTm8b.97362$(E-Mail Removed)...
> > hi guys,
> > to further explain... the idea behind this is to create a

> cd-rom
> > that auto starts with a html page, then i want to have links that open
> > notepad... etc
> > the page that opens these applications would have a light

description
> of
> > it's basic functions.
> > i fully understand the problem behind an application starting from a

link
> > but i don't neccessarily want to avoid the popup dialog box (this would

be
> a
> > nice feature to this presentation though) i just want to access these
> > applications from local hard drive of the users computer rather than
> > imbedding these applications into the cd-rom and having possibly

infringed
> a
> > law or something.
> >
> > so, would i have to create a link to notepad of /windows/notepad.exe

> (of
> > which i would have to have another link for win2000 systems -
> > /winnt/notepad.exe etc...) or could i call it via something like...
> > run/notepad.exe/x/x ?
> >
> > thanks
> > bob
> >
> >
> >
> >
> > "bob" <(E-Mail Removed)> wrote in message
> > news:sFk8b.97268$(E-Mail Removed)...
> > > hello,
> > > how could i start a windows application (eg: wordpad, calc, notepad

> > etc...)
> > > from a html page?
> > >
> > > thanks
> > > bob
> > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling a windows application Miguel Ramirez ASP .Net 8 11-04-2005 07:21 PM
Calling a Windows application from a Web Application Amaryllis ASP .Net 1 08-10-2004 05:41 AM
calling a class defined in an ASP.NET project from windows application z. f. ASP .Net 5 06-13-2004 12:47 PM
Calling Windows application from Web application ASP .Net 1 11-02-2003 03:30 AM
calling a windows application (from hyperlink?) bob HTML 12 09-13-2003 10:33 PM



Advertisments