有没有办法在服务器上注册 dll 作为构建的一部分?
我正在尝试自动构建我们的网络应用程序。我需要能够将 VB6 DLL 复制到服务器并注册它们,因为 Web 应用程序将它们用作后端。我似乎找不到从另一台机器注册它们的方法。我无法使用 rsh,因为该服务器不允许使用 rsh。
I'm trying to build our web application automatically. I need to be able to copy the VB6 DLL's to a server and register them since the webapp is using them as a backend. I can't seem to find a way to register them from another machine. I can't use rsh because it isn't allowed on this server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在单独的 ASP 应用程序中创建一个 ASP.NET 表单,该表单接受要注册的 DLL 路径,并计划一个批处理文件(在文件名中包含作业 ID、时间戳和序列号以进行统一),以便在下一个任务开始时与 Windows Scheduler 一起运行。分钟,将寄存器结果输出到结果文本文件。并删除较旧的时间戳批处理和结果文件。并且支持之前作业的状态码/文本输出查询/返回。并使用 C# 脚本通过网络从命令行调用此 ASP 接口。恶心。真的非常可怕的摇摇晃晃的解决方案,可能比应用程序(本身)需要更多的工作。
我相信,十年前,Borland C++ 曾经包含一个远程命令工具。还有很多用于远程处理的工具。
但是,如果没有合适的任意远程命令或 shell权限,在寻找远程注册时,您的选择是有限的。
You could create a ASP.NET form in a separate ASP application, that accepts DLL paths to register and schedules a batch file (with job ID, timestamp and sequence number in filename to uniquify) to run with Windows Scheduler at the start of the next minute, outputting register result to a result text file. And which deletes older time stamp batch and result files. And which supports status code/text output enquiry/return for previous jobs. And call this ASP interface from the command line over the network using a C# script. Yuck. Really really horrible rickety rickety solution and might be more work than the application (itself).
Borland C++ used to include a remote commands tool I believe, a decade ago. And there's plenty of tools for remoting.
But without suitable arbitrary remote commands or shells permission, looking for remote registration, you're options are limited.