faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 2 people (50%) answered Yes
Recently 1 of 2 people (50%) answered Yes

Entry

how to sart process throw java script like "notepad"

Apr 9th, 2008 20:23
ha mo, Dave Clark, joe rozario,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joe,
In general, it is not possible to start an external process on the 
local user's PC from JavaScript.  The reason for this has to do with 
Internet security measures.  However, Microsoft recognizes that local 
networks (intranets) within the business envorinment have a definite 
need for browser-based scripting languages to have the ability to 
interact more with the local PC.  Thus, IE's version of JavaScript 
(JScript) includes the ability to instantiate ActiveX objects which 
will work against the local PC.  IE does not allow those same ActiveX 
objects, though, to be instantiated if the script is being executed 
from the Internet -- only from an intranet.
In your case, then, it is the Windows Script Host SHELL object which 
you need to instantiate from JScript to invoke local applications such 
as NotePad.  The following is a link to that:
http://msdn2.microsoft.com/en-us/library/aew9yb99.aspx
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.healthinhealth.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com