0

I have VB.NET code that handles automation of various application installs. I want to move this essentially out of a VB generated EXE package, and be able to execute the same code (or the equivalent result) from an HTML page on a server. Is this possible? It looks like javascript can't cross the web application/desktop application barrier. Perhaps I can execute the VB.NET code/application that handles the automation (stored server side) from code in the HTML? This is a fairly broad question(s) so ideas are welcome. Please post examples with your ideas!

Thanks.

4

1 回答 1

0

伊恩的评论让我再次阅读了这个问题。如果您真的打算通过网络浏览器在客户端执行代码,请忽略此答案。

您可以使用任何您想要执行此操作的服务器端语言。由于您已经用 VB 编写了它,因此可以使用 ASP.NETPHP 的 exec()。例子:

<?php
if($_GET["dosomething"]) {
    exec("mycommand");
}

mycommand当您dosomething作为参数传递给文件时将执行。

于 2013-04-03T21:54:16.630 回答