74
rated 0 times
[
76]
[
2]
/ answers: 1 / hits: 64791
/ 12 Years ago, tue, august 21, 2012, 12:00:00
I thought for some simple tests that just run a few commands i would try using some JavaScript and run it from the command line in Windows XP.
So for a quick test I created a script
alert('Hello, World!');
Then tried to run it
D:>Cscript.exe hello.js
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
D:hello.js(1, 1) Microsoft JScript runtime error: Object expected
Google has not helped and I am sure I am missing something silly, can any of you guys shed any light on why this simple script doesn't run?
More From » windows