Launching javascript from the desktop

O

Oriane

Hi there,

I would like to run a javascript file directly from the desktop, like a
VBScript file. So my post is perhaps "out of topic" in which case I
apologize.

The goal is to run this sort of script, which in turn will open an HTML page
inside a Windows window:
"window.open (http://www..., arg...)"

Thus, it will avoid the internet user from opening a navigator...

Besrt regards
 
J

Jeff Dillon

Oriane said:
Hi there,

I would like to run a javascript file directly from the desktop, like a
VBScript file. So my post is perhaps "out of topic" in which case I
apologize.

The goal is to run this sort of script, which in turn will open an HTML
page inside a Windows window:
"window.open (http://www..., arg...)"

Thus, it will avoid the internet user from opening a navigator...

Besrt regards

Or open a cmd prompt, and enter "start www.microsoft.com"
 
B

bruce barker

they run the same as vbscript, just use extension ".js".

but because wsh is running the script, not the browser, there is no
window.open (as this feature is supplied by the browser). for intrenal, you
may want to look at using an hta file instead.


-- bruce (sqlwork.com)
 
S

Steven Cheng [MSFT]

Hi Oriane,

As others mentioned, jscript is also a supported script language for
windows script host. You can use jscript to write script files that can be
launched from windows shell or explorer.

#JScript (Windows Script Technologies)
http://msdn.microsoft.com/en-us/library/hbxc2t98.aspx

#Scripting
http://msdn.microsoft.com/en-us/library/ms950396.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top