executable

How to run unmanaged executable from memory rather than disc

核能气质少年 提交于 2019-12-29 05:25:09
问题 I want to embed a command-line utility in my C# application, so that I can grab its bytes as an array and run the executable without ever saving it to disk as a separate file (avoids storing executable as separate file and avoids needing ability to write temporary files anywhere). I cannot find a method to run an executable from just its byte stream. Does windows require it to be on a disk, or is there a way to run it from memory? If windows requires it to be on disk, is there an easy way in

Pyinstaller setting icon

天大地大妈咪最大 提交于 2019-12-29 02:47:08
问题 I use command that: pyinstaller.exe --icon=test.ico -F --noconsole test.py All icons do not change to test.ico Some icons remain default(pyinstaller) icon... Why? all icon change OS -> windows 7 32bit, windows 7 64bit(make exe file OS) remain default icon OS -> windows 7 64bit(other PC) 回答1: I know this is old and whatnot (and not exactly sure if it's a question), but after searching, I had success with this command for --onefile : pyinstaller.exe --onefile --windowed --icon=app.ico app.py

How to execute a shell built-in command

落花浮王杯 提交于 2019-12-28 17:52:24
问题 I am trying to find out if a program exists on Linux and I found this article. I tried executing this from my go program and it keeps giving me an error saying it can-not find "command" in my $PATH, which is to be expected since it's a built-in command in linux and not a binary. So my question is how to execute built in commands of linux from within go programs? exec.Command("command", "-v", "foo") error: exec: "command": executable file not found in $PATH 回答1: Just like that article says,

Do ghc-compiled binaries require GHC or are they self-contained?

雨燕双飞 提交于 2019-12-28 05:16:08
问题 If a friend wants to run my Haskell binaries, does he have to first install Haskell, or can he immediately run the binary by itself? Is the answer the same on Mac, Windows, and Linux? 回答1: GHC does produce stand-alone binaries that do not require GHC itself to be installed, however they do link against some dynamic libraries, most notably libgmp . The remaining libraries are commonly found out of the box on most Linux systems. I believe the situation is similar on Windows. You can check which

Packaging Java apps for the Windows/Linux desktop

吃可爱长大的小学妹 提交于 2019-12-28 03:20:27
问题 I am writing an application in Java for the desktop using the Eclipse SWT library for GUI rendering. I think SWT helps Java get over the biggest hurdle for acceptance on the desktop: namely providing a Java application with a consistent, responsive interface that looks like that belonging to any other app on your desktop. However, I feel that packaging an application is still an issue. OS X natively provides an easy mechanism for wrapping Java apps in native application bundles, but producing

How to reduce the size of executable produced by MinGW g++ compiler?

孤者浪人 提交于 2019-12-28 02:12:05
问题 I have a trivial "Hello world" C++ program that is compiled to 500kB executable by MinGW g++ compiler under Win XP. Some say that is caused by iostream library and static link of libstdc++.dll . Using -s linker option helped a bit (reducing 50% size), but I would by satisfied only by <10kB executable. Is there any way how to achieve this using MinGW compiler? Portability is not a big concern for me. Is it possible to copy libstdc++.dll with the executable using dynamic linking? If so, how to

How do I run an executable using Lua?

拈花ヽ惹草 提交于 2019-12-28 01:30:01
问题 I have an executable I want to run using Lua ... how do I do this? Can't seem to find any documentation anywhere about this. 回答1: You can use Lua's native 'execute' command. Example: os.execute("c:\\temp\\program.exe") Sources: Lua Guide / os.execute 回答2: If you need the output of the program, use io.popen 回答3: Use os.execute. 来源: https://stackoverflow.com/questions/2829404/how-do-i-run-an-executable-using-lua

How do I run an executable using Lua?

谁都会走 提交于 2019-12-28 01:29:01
问题 I have an executable I want to run using Lua ... how do I do this? Can't seem to find any documentation anywhere about this. 回答1: You can use Lua's native 'execute' command. Example: os.execute("c:\\temp\\program.exe") Sources: Lua Guide / os.execute 回答2: If you need the output of the program, use io.popen 回答3: Use os.execute. 来源: https://stackoverflow.com/questions/2829404/how-do-i-run-an-executable-using-lua

Embedding an external executable inside a C# program

爱⌒轻易说出口 提交于 2019-12-27 10:40:52
问题 How do I embed an external executable inside my C# Windows Forms application? Edit: I need to embed it because it's an external free console application (made in C++) from which I read the output values to use in my program. It would be nice and more professional to have it embedded. Second reason is a requirement to embed a Flash projector file inside a .NET application. 回答1: Here is some sample code that would roughly accomplish this, minus error checking of any sort. Also, please make sure

Embedding an external executable inside a C# program

六眼飞鱼酱① 提交于 2019-12-27 10:38:06
问题 How do I embed an external executable inside my C# Windows Forms application? Edit: I need to embed it because it's an external free console application (made in C++) from which I read the output values to use in my program. It would be nice and more professional to have it embedded. Second reason is a requirement to embed a Flash projector file inside a .NET application. 回答1: Here is some sample code that would roughly accomplish this, minus error checking of any sort. Also, please make sure