473,654 Members | 3,076 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.ope n (http://www..., arg...)"

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

Besrt regards

Aug 18 '08 #1
5 1817
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******** *************** ***********@mic rosoft.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.ope n (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******** *************** ***********@mic rosoft.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.ope n (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.c om"

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.ope n (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****@microsof t.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.ope n (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******** *************** ***********@mic rosoft.com...
Hi Bruce,
"bruce barker" <br*********@di scussions.micro soft.coma écrit dans le
message de news:44******** *************** ***********@mic rosoft.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.ope n", 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.ope n" 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
1701
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 launched, as one would in an html link with the javascript onclick="window.open( 'http://www.mysite.com', 'mywindow', 'width=500,height=500,scrollbars=no,resizable=no')"
2
3254
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 Enterprise 3, Gnome or KDE, Generic PC, 1.5 GHz P-III CPU, 256 MB RAM, Sun JRE 1.5.0_2. (These problems present on multiple hardware configurations.
2
470
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
5841
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 than open the file in a browser is: <script language="JavaScript"> function startPowerPoint(strFile) { var myApp = new ActiveXObject("PowerPoint.Application");
6
1549
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 launch the second application, this second application override the session variables values of the first application. I can run 2 instances of my asp.net application if I open two browsers and I enter the url of my web application in the address...
1
1240
by: darren | last post by:
Hello, Is it posible to launch the Remote Desktop Dialog Box with Javascript? Darren
1
1733
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 seconds: Check to see if each of the other executables are running or not. If they are not running, it should load them. For this purpose, I am planning the following:
2
1717
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 code ex: function ChangeCategory(ForWhat){ switch(ForWhat.selectedIndex){ case 0: //if he selected noothing document.getElementById("Type").innerHTML=""; document.getElementById("CType").innerHTML="";...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.