如何将所有 VBScript 文件的 cscript.exe 更改为 wscript.exe 执行? [英] How to change cscript.exe to wscript.exe execution for all VBScript files?

查看:26
本文介绍了如何将所有 VBScript 文件的 cscript.exe 更改为 wscript.exe 执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装新服务器后,我遇到了一个问题.

After installing the new server, I am facing an issue.

我有很多 .vbs 文件,都需要在 wscript 中运行,原因,我使用所有这些命令,如 WScript.Echo "hello"

I have lot of .vbs files, all need to run in wscript, reason, I use all those command like WScript.Echo "hello"

我希望在双击 VBScript 文件时能够看到输出.

I want to be able to see the output when I double click the VBScript file.

但是当我右键单击 vbs 文件时,我看到控制台,我想全局更改默认为 Windows 主机!

But when I right click on the vbs file, I see console, I want to change the default to Windows host, globally!

我该怎么做?

推荐答案

我可以通过以下步骤解决:

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

  1. 选择我想打开的 VBScript 文件,
  2. 右击选择默认程序,
  3. 浏览到 C:/windows/windows32/wscript.exe,然后选择它.

这篇关于如何将所有 VBScript 文件的 cscript.exe 更改为 wscript.exe 执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆