根据用户请求通过 asp.net 将整数附加到 exe 文件

发布于 2024-10-08 20:17:23 字数 422 浏览 3 评论 0原文

我在这方面没有经验,所以我不希望有人详细解释这是如何完成的,只是为我指明正确的方向,也许告诉我正确的名称是什么。我确信它的使用非常普遍。

我认为解释这一点的最好方法是通过我的确切需要。因此,我的网站上有一个按钮,应该会导致用户下载 exe 文件。该 exe 文件几乎从用户 PC 收集了一些信息,并通过网络服务将它们发布到我的数据库中。现在我的问题是,这些信息应该分配给下载数据库中exe文件行的用户。

所有这一切都可以通过在下载请求上为这个 exe 文件分配一个整数值(用户 ID)来解决,然后让 exe 文件也获得分配给它的这个值,但我该怎么做呢?

我的网站语言是asp.net,exe文件是用vb.net编写的。


我知道我可以通过让 exe 文件显示登录表单并以这种方式获取用户 ID 来伪造这一点,但我真的很喜欢应用程序在用户不注意的情况下运行。

I have no experience on this matter, so I do not expect anyone to explain in details how this is done, just point me in the right direction, maybe tell me what the correct name for this is. I'm sure it is pretty commonly in use.

I think the best way to explain this, is through my exact need. So, I have a button on my website that should cause the user to download an exe file. The exe file pretty much gathers a few informations from the users PC, and post them to my data-base through a web-service. Now my problem is, these informations should be assigned to the user who downloaded the exe file's row in the DataBase.

All this would be solved by assigning a single Integer value(the users ID) to this exe file on the download request, and then a way for the exe file to also get this value assigned to it, but how do I do that?

My language is asp.net for my website, and the exe file is written in vb.net.


I know I could fake this by making the exe file show a login-form and get the user-id this way, but I really like the application run without the user noticing to much.

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

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

发布评论

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

评论(1

紫轩蝶泪 2024-10-15 20:17:23

可能有更好的解决方案,但替代方案是 动态编译应用程序

我认为这种方法的问题在于,在服务器上执行此操作会花费太多时间和资源。此外,对应用程序的更改也很难应用。

There are probably much better solutions, but an alternative would be to dynamically compile an application.

I imagine that the problem with this approach is that it would take too much time and resources to do it on a server. Also, changes to the application would be difficult to apply.

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