应用程序中的 vbscript 有哪些替代品?

发布于 2024-07-29 06:12:48 字数 404 浏览 1 评论 0原文

我维护的一个应用程序从 VB6 时代起就已经存在了 - 移植到 .Net 1.1,现在正在更新/重写到 .Net 3.5

该应用程序提供了一种运行 VBScript 的机制 - 这是以高度集成的方式完成的 - 允许程序解析多个 .vbs 文件并生成所有子例程和函数的列表 - 然后这些子例程和函数可在应用程序中与核心函数一起使用。

以前这是一个嵌入的 msscript.ocx - 在第一次 .Net 转换中,它被包装在 Interop.MSScriptControl.dll 中,但是,在 Windows 7 上这不起作用。

看起来这确实不是这样做的方法 - 微软似乎试图杀死 vbscript。

是否有一种“受支持”的使用 VBScript 的方式,或者是时候继续前进了? 如果是这样,哪里可以提供相同的功能?

An application I maintain has been around since VB6 days - ported to .Net 1.1, and now being updated/rewritten across to .Net 3.5

The application provides a mechanism to run VBScripts - this was done in a highly integrated way - allowing the program to parse multiple .vbs files and produce a list of all of the subroutines and functions - which were then available within the application alongside core functions.

Previously this was an embedded msscript.ocx - in the first .Net conversion, this was wrapped in Interop.MSScriptControl.dll, however, on Windows 7 this just isn't working.

It looks like this is really not the way to be doing this anyway - Microsoft seem to be trying to kill vbscript.

Is there a 'supported' way of using VBScript, or is it time to move on? and if so, where is there to move to that provides the same sort of functionality?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

葬シ愛 2024-08-05 06:12:48

PowerShell 确实是您想要的方式,如果您想做脚本。 以下是 Windows 7 上的 PowerShell 中的一些新功能< /a>. 这是VBScript 到 PowerShell 转换指南

PowerShell.com 上还有大量优质资源,其中包括一个不错的 IDE

PowerShell is the really the way you want to go if you want to do scripting. Here are some of the new features in PowerShell on Windows 7. Here is a VBScript to PowerShell conversion guide.

There are also tons of great resources over at PowerShell.com including a nice IDE.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文