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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

launch application using jscript

Status
Not open for further replies.

karenmierkalns

Programmer
May 10, 2001
54
CA
Is there a way to launch an application using javascript? (such as a different browser)

In VBScript I can do this with the run method...but I need to do this in javascript.

Thanks. - Karen
 
i'm not sure about launching other applications but you can launch a new browser with window.open()
 
Ok - that's what I thought. I've rethought doing this anyway. - Karen
 
I'm not sure about the actual code but you can gain access to the file system of at least Windows Machines by invoking an ActiveX object. Here's some sample code..

var fso = new ActiveXObject ("Scripting.FileSystemObject");
var a = fso.CreateTextFile ("c:\\testfile.txt",true);
a.WriteLine("This is a test.");
a.Close();

Everything about a local machine is located within the ActiveXObject. This is only supported by Internet Explorer and maybe only useful on windows machines. (JScript only). Rocco is the BOY!!

M O T I V A T E!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top