An alternative to having .js file associated with wscript.exe is to explicitly put them into a command line in a shortcut. i.e. right click on the file and click Create Shortcut. Then right click on the shortcut and click properties. Change the target from: C:\<wherever your script is located>\myscript.js to: wscript.exe //E:javascript myscript.js
then click OK

A further alternative is to add this to your tools menu in AmiBroker - but note that there is a limit of 10 items in this menu.

To do so: Start AB, click Tools then Customize then Tools. Create a new entry with:
Command: wscript.exe
Arguments:  //E:javascript myscript.js
Initial directory:  C:\<wherever your script is located>

Both of the above methods work fine for me in Windows 7.


Best regards,
Richard Dale.
Norgate Investor Services
- Premium quality Stock, Futures and Foreign Exchange Data for
  markets in Australia, Asia, Canada, Europe, UK&  USA -
www.premiumdata.net






-------- Original Message  --------
Subject: [amibroker] JS Script in Windows 7
From: bobkrish <[email protected]>
To: [email protected]
Date: Thu, 25 Feb 2010 20:24:30 -0000

After installing Windows 7 and a fresh copy of Amibroker, when I try to run a script file with a .js extension, windows tells me that there is no scripting engine to handle .js files. the wscript.exe file is version 5.87 and it does recognize .jse files. I changed the extension on one file to .jse and it worked.

My question is can I alter the behavior of the wscript.exe program to recognize .js files or must I change all my .js files to .jse?

Bob Krishfield




Reply via email to