生成 Windows 可执行文件以使用系统调用为运行另一个可执行文件添加前缀的最简单语言?
我想在运行可执行文件之前运行一些系统命令(以修复问题)。我有一个相当锁定(工作)的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Visual C# 2008 Express Edition 是
experience
Windows平台
Visual C# 2008 Express Edition is
experience
Windows platform