HighDots Forums  

calling a windows application (from hyperlink?)

Javascript JavaScript language (comp.lang.javascript)


Discuss calling a windows application (from hyperlink?) in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bob
 
Posts: n/a

Default calling a windows application (from hyperlink?) - 09-12-2003 , 10:23 AM






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

thanks
bob




Reply With Quote
  #2  
Old   
bob
 
Posts: n/a

Default Re: calling a windows application (from hyperlink?) - 09-12-2003 , 12:54 PM






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" <god (AT) doodsville (DOT) com> wrote

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

thanks
bob






Reply With Quote
  #3  
Old   
Grant Wagner
 
Posts: n/a

Default Re: calling a windows application (from hyperlink?) - 09-12-2003 , 01:43 PM



bob wrote:

Quote:
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.

--
Quote:
Grant Wagner <gwagner (AT) agricoreunited (DOT) com
* 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
  #4  
Old   
Chris Leonard
 
Posts: n/a

Default Re: calling a windows application (from hyperlink?) - 09-12-2003 , 02:45 PM



Quote:
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
  #5  
Old   
bob
 
Posts: n/a

Default Re: calling a windows application (from hyperlink?) - 09-12-2003 , 08:02 PM



this sort of thing is what i'm looking for:

javascript'FindApp(NOTEPAD.exe)';


"bob" <god (AT) doodsville (DOT) com> wrote

Quote:
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" <god (AT) doodsville (DOT) com> wrote in message
news:sFk8b.97268$bo1.95762 (AT) news-server (DOT) bigpond.net.au...
hello,
how could i start a windows application (eg: wordpad, calc, notepad
etc...)
from a html page?

thanks
bob








Reply With Quote
  #6  
Old   
bob
 
Posts: n/a

Default Re: calling a windows application (from hyperlink?) - 09-13-2003 , 12:36 AM



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" <god (AT) doodsville (DOT) com> wrote

Quote:
this sort of thing is what i'm looking for:

javascript'FindApp(NOTEPAD.exe)';


"bob" <god (AT) doodsville (DOT) com> wrote in message
news:eTm8b.97362$bo1.94186 (AT) news-server (DOT) bigpond.net.au...
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" <god (AT) doodsville (DOT) com> wrote in message
news:sFk8b.97268$bo1.95762 (AT) news-server (DOT) bigpond.net.au...
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
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.