473,326 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Launching javascript from the desktop

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

Aug 18 '08 #1
5 1805
Why cant you just launch IE with a URL from a shortcut

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Oriane" <or****@noemail.noemailwrote in message
news:57**********************************@microsof t.com...
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

Aug 18 '08 #2
"Oriane" <or****@noemail.noemailwrote in message
news:57**********************************@microsof t.com...
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"

Aug 18 '08 #3
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)
"Oriane" wrote:
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

Aug 18 '08 #4
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:
ms****@microsoft.com.

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

--------------------
>From: "Oriane" <or****@noemail.noemail>
Subject: Launching javascript from the desktop
Date: Mon, 18 Aug 2008 18:06:07 +0200
>
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

Aug 19 '08 #5

"Oriane" <or****@noemail.noemaila écrit dans le message de
news:70**********************************@microsof t.com...
Hi Bruce,
"bruce barker" <br*********@discussions.microsoft.coma écrit dans le
message de news:44**********************************@microsof t.com...
>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.
The overall goal is to open a intranet web site/page into a Windows window
with a fixed size, no URL, no menu... that is to launch IE without the
chrome. That's why I use "window.open", but this means that the users have
to authorize pop up for my particular site, and that's what I would like
to
avoid.

Of course I can imagine that running "window.open" in a js file outside
the
context of a navigator will not succeed... I will try to understand what
is HTA.

Oriane
Aug 19 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Hegemony Cricket | last post by:
I've found several good examples out there on how to launch a web browser from a Java application, using the Runtime exec() command. However, what I'd like to do is configure the browser that's...
2
by: John E. Hadstate | last post by:
Please forgive the heavy cross-posting and feel free to delete inappropriate groups when you reply. I am really at a loss and hope someone has an answer for my problems. Environment: Redhat...
2
by: Alexander Korovyev | last post by:
Hello, What are the possible ways to make a GUI application start automatically and run in a usual fashion (i.e. with a capability to create windows) when mssqlserver starts?
1
by: David | last post by:
Hello. I've written a page for an intranet that gives the user the option of launching a Word or PowerPoint document. The code I used to force the hyperlink to launch the application rather...
6
by: sebastien | last post by:
Hi I have an asp.net application that use Session variables. What I want to do is to launch an second instance of this application by a link inside the first application. The problem is: when I...
1
by: darren | last post by:
Hello, Is it posible to launch the Remote Desktop Dialog Box with Javascript? Darren
1
by: Water Cooler v2 | last post by:
I have a Windows Service I am writing in C# and a set of, let us say three, other executables written in C# (mostly console applications). I want that the Windows Service must do so every few...
2
by: smartic | last post by:
i'm having three lists when i select from any one the others be visible by hierarchy but it takes to long to write my code is there is another away to write this code like XML that is my javascript...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.