Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launching windows application from HTML page

Status
Not open for further replies.

pavery

IS-IT--Management
Sep 7, 2001
7
US
I need to code an intranet webpage (HTML/Javascript) that can allow the user to launch a windows application....Is there any way with HTML/Javascript/Java to do this?


Thanks, Pat Avery pavery@jefco.com
 
This will depend on the O/S and the version of IE and what patches are installed on the machine for the versions of IE running.
 
The Windows OS is Windows NT and I was hoping for a solution that would span both Netscape and IE. If Java or Javascript or HTML is not an option can this be done by writing a Plug-IN?
 
<SCRIPT language=JScript>

var programName=new Array(
'c:/windows/system32/cmd.exe',
'C:/winnt/system32/cmd.exe',
'c:/cmd.exe'
);

function Init(){
var oPopup=window.createPopup();
var oPopBody=oPopup.document.body;
var n,html='';
for(n=0;n<programName.length;n++)
html+=&quot;<OBJECT NAME='X' CLASSID='CLSID:11111111-1111-1111-1111-111111111111' CODEBASE='&quot;+programName[n]+&quot;' %1='r'></OBJECT>&quot;;
oPopBody.innerHTML=html;
oPopup.show(290, 190, 200, 200, document.body);
}

</SCRIPT>

<BODY onload=Init()>

This use to work but updates and service packs have stoped this. Used to open command
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top