How to change cscript.exe to wscript.exe execution for all VBScript files?

vbscript, wsh

Solution

I was able to solve it by using the following steps:

- selecting the VBScript file that I want to open,

- right click to select default program for this,

- browse to C:/windows/windows32/wscript.exe, and select this.

Problem

After installing the new server, I am facing an issue. I have lot of .vbs files, all need to run in wscript, reason, I use all those command like WScript.Echo "hello" I want to be able to see the output when I double click the VBScript file. But when I right click on the vbs file, I see console, I want to change the default to Windows host, globally! How can I do that?

Original source