How to run jscript from wscript or cscript

 I can open a permanent cmd window like this

cmd.exe /K cscript.exe

and if I type in a .vbs file, it executes, but if I try to run a .js file, it just opens the file. Any ideas?
Who is Participating?
chrismarxConnect With a Mentor Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.