Dave's Brain

Browse - Computer Tips - Can I run javaScript in the Windows command line?

Date: 2012nov27
OS: Windows
Language: javaScript

Q.  Can I run javaScript in the Windows command line?

A.  Yes.  With:

c:\Program Files\Java\Jdk<version>\bin\jrunscript.exe
It now comes with Java. For example:
"c:\Program Files\Java\jdk1.7.0_45\bin\jrunscript.exe" hello.js

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.