Launching javascript from the desktop

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oriane

    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

  • John Timney \(MVP\)

    #2
    Re: Launching javascript from the desktop

    Why cant you just launch IE with a URL from a shortcut

    Regards

    John Timney (MVP)




    "Oriane" <oriane@noemail .noemailwrote in message
    news:571E6783-E22A-45E2-82D8-E618C41599DF@mi crosoft.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

    Comment

    • Jeff Dillon

      #3
      Re: Launching javascript from the desktop

      "Oriane" <oriane@noemail .noemailwrote in message
      news:571E6783-E22A-45E2-82D8-E618C41599DF@mi crosoft.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"



      Comment

      • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

        #4
        RE: Launching javascript from the desktop

        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
        >
        >

        Comment

        • Steven Cheng [MSFT]

          #5
          RE: Launching javascript from the desktop

          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)


          #Scripting


          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:
          msdnmg@microsof t.com.

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



          --------------------
          >From: "Oriane" <oriane@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
          >
          >

          Comment

          • Oriane

            #6
            Re: Launching javascript from the desktop


            "Oriane" <oriane@noemail .noemaila écrit dans le message de
            news:708183DB-6706-402F-88E0-99B9314E1ED7@mi crosoft.com...
            Hi Bruce,
            "bruce barker" <brucebarker@di scussions.micro soft.coma écrit dans le
            message de news:4415E63E-ACC6-4FEF-8B5F-C02663C475D5@mi crosoft.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
            >

            Comment

            Working...