生成 Windows 可执行文件以使用系统调用为运行另一个可执行文件添加前缀的最简单语言?

发布于 2024-08-10 18:05:49 字数 267 浏览 2 评论 0原文

我想在运行可执行文件之前运行一些系统命令(以修复问题)。我有一个相当锁定(工作)的 Windows XP 系统,因此无法更改快捷方式指向的内容。为了方便用户,我必须保留相同的快捷方式。但是,我可以交换 .exe(重命名),并可能将其替换为另一个 .exe(同名),该 .exe 运行我的系统命令,然后运行原始 .exe。

执行此操作最简单、最快的语言/编译器是什么?以前,我已经在 C 中完成了此类操作(今天在 Python 中使用 py2exe 进行了尝试,但没有取得太大成功)。最好是免费的解决方案。

I want to run some system commands (to fix things) before running an executable. I have a reasonably locked down (work) Windows XP system and so can't change what a shortcut points to. For my users' convenience, I must keep the same shortcut. However, I am able to swap out the .exe (renaming) and potentially replace it with another .exe (of the same name) which runs my system commands and then runs the original .exe.

What would be the easiest and quickest language/compiler to do this in? Previously, I've done this sort of thing in C (and tried it today in Python using py2exe without much success). Preferably free solutions.

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

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

发布评论

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

评论(1

梦里人 2024-08-17 18:05:49

Visual C# 2008 Express Edition

  • 免费的,
  • 带有编译器
  • 输出 exe
  • 如果满足以下条件,C# 是一个不错的选择你有C
    experience
  • .net 目前是“规范的”
    Windows平台

Visual C# 2008 Express Edition is

  • free
  • comes with a compiler
  • outputs exes
  • C# is a good choice if you have C
    experience
  • .net currently is the "canonical"
    Windows platform
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文