从vbscript获取状态以显示在winforms应用程序中 [英] getting status from a vbscript to show up in a winforms application

查看:58
本文介绍了从vbscript获取状态以显示在winforms应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个脚本,不想将其硬编码到应用程序中,所以我创建了一个列表视图,因此可以双击它们来运行.我确实修改了脚本,以从应用程序创建的文本文件中提取计算机名称,但我的大问题却显示出进展.

I have several scripts that i dont want to hard code into my applciation so i created a listview so i can double click them to run. I did modify the scripts to pull the machine name from a text file my application creates but my big issues is showing progress.

Is there any way to have a vbscript or batch file show progress in a winforms application?

推荐答案

只有在脚本被编码为以某种方式提供进度的情况下,才能通过vbscript或批处理文件显示进度吗?您必须发明一种机制来做到这一点.很难想出在批处理文件和vbscripts之间都可以使用的标准化方法.

坦白地说,这种工作更适合于编写脚本和批处理文件的替换代码.
Only if the scripts are coded to supply progress somehow. You''ll have to invent the mechanism to do so. It''ll be difficult to come up with a standardized method that works between both the batch files and the vbscripts.

Frankly, that kind of effort would be better suited to coding up replacements for the scripts and batch files.


这篇关于从vbscript获取状态以显示在winforms应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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