exe

Run Exe file as an Embedded Resource in C#

为君一笑 提交于 2019-11-27 02:18:41
问题 I have a 3rd party EXE. I just need to run this from my C# application. My prime target is to copyright that 3rd party executable from my C# file.. Is there any better way to do this.? How can I do this ? Thank you Menaka 回答1: First add the embeded executable file as resource file to your existing resource file, if you dont have one, then you need to [add existing item to your project, and select resource file] When you add the executable file in resource editor page, select type as [Files],

How to create an exe file in java

走远了吗. 提交于 2019-11-27 01:59:57
问题 Hi I want to create an exe file for my java app. I tried with some third party softwares JEXECreator, successfully created the exe file and its working fine in my system, when I tried with another machine, it’s not working. I got the following error * The error occurred while running the application. The exit code is 0x10000223. * Contact the vendor of the application for troubleshooting. java.lang.ClassNotFoundException: com.sample.SampleMain at java.net.URLClassLoader$1.run(Unknown Source)

check if some exe program is running on the windows

北城余情 提交于 2019-11-27 01:59:13
How to check if some .exe program is running (is in process) on Windows? I'm making java application which update one .exe program. So, if that exe program is used by some client, my application ask for closing exe program, and after closing automatically replace .exe file with new one. Aneesh You can run the following statement in your java program. Before that you need to know the name of the task in task manager . Say you want to see MS-Word is running. Then run MS-Word, go to task manager and under the process tab, you should see a process named word.exe . Figure out the name for the

Problems with running EXE file built with Visual Studio on another computer

拜拜、爱过 提交于 2019-11-27 01:39:50
问题 I created a client server application in C++ using Visual Studio. Now I want to run the client EXE file on another computer (which doesn't have Visual Studio installed), but when I try run the EXE file, it gives the following error message: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. How can I run the EXE file without installing anything on the computer? 回答1: Applications built with Visual Studio

Wix - How to run exe files after installation from installed directory?

这一生的挚爱 提交于 2019-11-27 01:09:47
问题 I'm using a program which is being installed using wix. (Don't know if it's relevant but it's a C# program) I want to run an exe file which was installed by the msi file, but the location of the installation is unknown to me since the user chooses the installation path. I wanted to ask for example of how to run an exe file from the location the user chooses. Even though it's not a part of the question, I would also be glad to see some example of running an exe file from an absolute location

what's in a .exe file?

点点圈 提交于 2019-11-26 23:59:32
问题 So a .exe file is a file that can be executed by windows, but what exactly does it contain? Assembly language that's processor specific? Or some sort of intermediate statement that's recognized by windows which turns it into assembly for a specific processor? What exactly does windows do with the file when it "executes" it? 回答1: MSDN has an article "An In-Depth Look into the Win32 Portable Executable File Format" that describes the structure of an executable file. Basically, a .exe contains

How to make a batch file that changes the wallpaper of a computer

守給你的承諾、 提交于 2019-11-26 23:41:26
问题 I want to create a batch file that is later going to be converted to an exe that changes the wallpaper of my computer as soon as I open it. Sorry I have no idea how to do this D: 回答1: The usual answer to this question is reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "c:\somewhere\something.bmp" /f to set the adecuated entry in the registry, followed by RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters to inform the system of the changes. BUT , from windows Vista this

How to execute JAVA program by double clicking on icon?

蹲街弑〆低调 提交于 2019-11-26 23:09:35
I have written a java program. Now I would like to open my console java application without IDE, Eclipse etc., but just by double clicking on the executable version on my Desktop. I have exported the java project in Runnable .JAR file, but it cannot be opened. When I tried to open the application with cmd. java -jar ApplicatonName.jar and everything is fine. But this process is too complicated, and it's not user-friendly. So is there any possible way to do such thing with JAVA ? Thanks in advance :) Create a bat or sh file, depending on the operating system, and put java -jar ApplicationName

Add icon to existing EXE file from the command line

泄露秘密 提交于 2019-11-26 22:53:39
问题 Is there a command line tool that can add an icon to an existing executable file? It should be able to set the icon as the file's "main" icon that is shown in Explorer. I don't have Visual Studio and cannot recompile the exe with custom resources containing the icon. UPDATE : The best tool I have found since posting this question is by far the RCEDIT.exe utility that is included with WinRun4J. 回答1: Resource Hacker is a free tool that allows you to modify resources in executables, and it can

How do I open an .exe from another C++ .exe?

房东的猫 提交于 2019-11-26 21:44:17
What I want to do is open an .exe from another .exe. I really don't know how to do this, so I searched the internet. I tried some suggested methods from the internet, but it didn't work. Here's my code: #include <iostream> #include <windows.h> using namespace std; int main() { system ("OpenFile.exe"); system ("pause"); return 0; } When I run it in DEV C++, it doesn't compile and I get a error. Can someone please help me? Jona You should always avoid using system() because It is resource heavy It defeats security -- you don't know you it's a valid command or does the same thing on every system,