Java and JavaScript are different languages at all:Kvc wrote:But, Are you sure - it is not the problem of having java installed in the PC? (just curious)
So you don't need to install Java, and even if you would do so, it won't help:
Beside this Daves javascript code is created to be run by the JScript Engine of the Windows Scripting Host (WSH).
I think this should state for most of the java script snipplets here on dostips.
Because of that the batch files execute such scripts using "cscript.exe" (or "wscipt.exe").
I don't know if any other JavaScript scripting engine is able to access the needed COM interfaces of the WSH, but i doubt it.
If i remember right, then the WSH should be preinstalled on any system since Windows XP.
If i'm wrong, then you have to install the .NET-Framework under Windows XP, but it is preinstalled since Windows Vista.
Sidenotes:
JScript is Microsoft's dialect of the ECMAScript.
ECMAScript is standardized JavaScript.
penpen