从Classic ASP网站执行Visual Basic .exe. [英] Execute visual basic .exe from Classic ASP website.

查看:258
本文介绍了从Classic ASP网站执行Visual Basic .exe.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Visual Basic .exe,当我在任何计算机或服务器上运行它或双击它时,它都可以正常运行.

但是,当我将该.exe文件放在服务器上时,使用内部门户网站的任何用户都可以从自己的帐户执行.当我尝试使用我的帐户从asp页面运行时,它没有给我结果.

我可以看到在服务器上的任务管理器上运行该.exe的过程,但没有得到结果.

有人可以指导我吗?

我已经在我的asp页面中编写了以下代码.

I have a visual basic .exe which works fine when I run it or double click it on any machine or on server.

But when I put that .exe file on server so any user using internal portal site can execute from their own account. It doesn''t give me results, when I try to run from my asp page using my account.

I can see the process for that .exe running on task manager on server but it doesn''t give me result.

Could anyone please guide me with that?

I have written following code in my asp page.

str = "C:\test.exe"

set oWSH = CreateObject("WScript.Shell")
oWSH.Exec str
Set oWSH = Nothing

推荐答案

您是否在说:我有一个VB Winforms EXE文件,该文件可以正常运行,并在我的计算机上运行时向我显示一个充满结果的表单.但是当我在服务器上运行它时,我看不到在我的机器上充满结果的表格."

如果是这样,那么没有.你不会的.该表格将显示在服务器上(可能会烦扰服务器管理员)
Are you saying: "I have a VB Winforms EXE file which works fine and shows me a form full of results when I run it on my machine. But when I run it on the server, I don''t see the form full of results on my machine."

If so, then no. You won''t. The form will be shown on the server (and will probably annoy the heck out of the server administrator)


这篇关于从Classic ASP网站执行Visual Basic .exe.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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