Re: can't run .js script

From: Alex Nichol (alexn.mvpdts_at_ntlworld.delete.com)
Date: 10/09/04


Date: Sat, 09 Oct 2004 16:03:25 +0100

Kurt Krueckeberg wrote:

> I need to run a .js script. But when I try to run it, from Windows
>Explorer, a Notepad edit session starts instead. How do I get it to run? .js
>scripts used to work, but somehow the program association has been broken,
>and I don't know how to get it back.

Try a right click and take Open. What has probably happened is that the
default on double click has been changed to Edit - a common setting as
it makes things considerably safer; scripts being very powerful tools.

If that does the trick, you can restore Run (Open) as the default,
though I would *not* advise it. Go to Folder Options - File Types,
highlight JS (which will have 'Opens with NotePad) and click Advanced.
There highlight Open and click Default to set that as default

-- 
Alex Nichol MS MVP (Windows Technologies)
Bournemouth, U.K.  Alexn@mvps.D8E8L.org (remove the D8 bit)


Relevant Pages

  • Re: opening a file
    ... Many of these scripts are on-the-fly scripts. ... Every rule has exceptions. ... for not checking whether or not a file opens in my own scripts, ... Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers ...
    (comp.lang.perl.misc)
  • Re: word opens without opening the document, like /n
    ... shortcut, ... I first noticed this behavior after running automation scripts. ... opens Word, opens a document, changes it, then closes Word. ... Do registry setting over ride command line switches? ...
    (microsoft.public.word.docmanagement)
  • Re: Opening multiple files at once, interface and flicker issues
    ... The first is to have opening scripts which should be triggered if the user navigates to them using the Window>> Show Window menu option. ... The second is to use FileMaker Advanced to actually remove the Window menu option thus preventing the user from opening those files. ... opens another file, the password is "inherited" and the second file's ...
    (comp.databases.filemaker)
  • Re: Python Scripts to logon to websites
    ... Thanks for your help with the search terms. ... Trying to make scripts that will open ... >> Does anyone have a simple example of a script that opens, say, gmail or ...
    (comp.lang.python)
  • Re: opening a file
    ... Many of these scripts are on-the-fly scripts. ... Every rule has exceptions. ... for not checking whether or not a file opens in my own scripts, ... deliberate choice on my part, and I have never sought to impose that ...
    (comp.lang.perl.misc)