executable

Modify/Replace Exe On the Fly

Hi, Whenever I download an update to firefox and apply it Kaspersky Antivirus alerts me that the file FIREFOX.EXE has been modified. I want to know how do they do it. Is it possible to do a simple program to demonstrate this trick. Like the executable would initially display "Hello, World!" on the prompt and when I replace/modify the sa...

Calling executable using Process with CSharp crashes intermittently.

I am calling an executable in C#. When the executable runs, it writes out to the console so the C# code is getting the console output and writing it to a text file. When the crash happens a couple of things occur. 1) The output of the text file is not completely written out. 2) The executable process seems to run completely through beca...

Determining application path in a Python EXE generated by pyInstaller

I have an application that resides in a single .py file. I've been able to get pyInstaller to bundle it successfully into an EXE for Windows. The problem is, the application requires a .cfg file that always sits directly beside the application in the same directory. Normally, I build the path using the following code: import os confi...

Java: export to an .jar file in eclipse

Im trying to export a program in eclipse to a .jar file. To my project in I have added some pictures and pdf. When im exporting to jar file, it seems that only the main has ben compiled and exported. My will is to export everything to a jar file if its possible becaus then I want to convert it to an extrakteble file, like .exe-file. But...

Overwrite executable in C:\Program\MyProg on Windows Vista

I would like my program to update itself (downloading a new exe and/or some other files from ftp) and I used the recipe in the accepted answer to this question. Recap: Rename running program to old-mp.exe Download the update as mp.exe directly Restart the program This works great for windows XP. On vista there is a problem, as the us...

Standalone Java Applications

is there a way to compile java files into executable with high quality free software and without going through using executable JAR files? ...

how do I convert my java files into an application?

I coded up 4 .java files. The thing is that I can only execute my .java files from my IDE, how do I execute the .class files like an application? I study at uni, and I was told that Java is platform independent. Any tutorial/book recommendations would be highly appreciated. Thanks ...

How do I find out which dlls an executable will load?

If I have a Windows executable, how can I find out which dlls it will load? I'm just talking about which ones that will be loaded statically, not ones it might load dynamically with something like LoadLibrary. ...

How can I execute Python code without Komodo -ide?

I do that without the IDE: $ ipython $ edit file.py $ :x (save and close) It executes Python code, but not the one, where I use Pygame. It gives: WARNING: Failure executing file: In the IDE, my code executes. ...

Hide Command Window of .BAT file that Executes Another .EXE File

This is a batch file in Windows. Here is my .bat file @echo off copy "C:\Remoting.config-Training" "C:\Remoting.config" "C:\ThirdParty.exe" This works fine except the .bat file leaves the command window open the whole time the "ThirdParty" application is running. I need the command window to close. I would use the short-cu...

How to monitor process/program execution in windows?

We are trying to develop a small application that can monitor the programs/processes that are executing in a windows machine. If the program/process is not supposed to run, it should be blocked. It works similar to an antivirus. This is the basic idea. I want to know the ways to hook into the OS to get notified about every single prog...

What are the uses of self modifying code?

Is there any real use for self modifying code? I know that they can be used to build worms/viruses, but I was wondering whether there is some good reason that a programmer may have to use self modifying code. Any ideas? Hypothetical situations are welcome too. ...

LINUX: Is it possible to write a working program that does not rely on the libc library?

I wonder if I could write a program in the C-programming language that is executable, albeit not using a single library call, e.g. not even exit()? If so, it obviously wouldn't depend on libraries (libc, ld-linux) at all. ...

How To Store Files In An EXE C#

Alright, so I'm working on programming my own installer in C#, and what I'd like to do is something along the lines of put the files in the .exe, so I can do File.Copy(file, filedir); Or, if this isn't possible, is there another way of doing what I am attempting to do? Thank you in advance. ~Seth ...

What is the smallest possible Windows (PE) executable?

As a precursor to writing a compiler I'm trying to understand the Windows (32-bit) Portable Executable format. In particular I'd like to see an example of a bare-bones executable which does nothing except load correctly, run and exit. I've tried writing and compiling a simple C main function which does nothing but the resulting .exe is ...

Equivalent of double-clickable .sh and .bat on Mac?

I am distributing a Java program where I want a double-clickable file to run java -cp MyProgram.jar;MyLib.jar my.program.Main On Windows I simply distribute a .bat file, for *nix an executable .sh file. Problem is, double-clicking the .sh file just opens it up in a text editor on Mac. What should I do for Mac? ...

Mount executable as file on Linux/Unix filesystem

Is it possible to make an executable look like a read-only file on Linux, such that opening the "file" for reading actually executes the file and makes its stdout available for reading as if it were data in the "file"? It should be openable by any program that knows how to open a file for reading, for example 'cat'. ...

How to determine a windows executables DLL dependencies programatically?

Anybody know how to determine what DLL's a binary depends on using programmatic methods? To be clear, I am not trying to determine the DLL dependencies of the running exec, but of any arbitrary exec (that may be missing a required DLL). I'm looking for a solution to implement in a C/C++ application. This is something that needs to be ...

GCC on Windows: Set "Description" field of C executable?

**C Newbie Alert** How does one set the "Description" property of an executable? By this I mean the value displayed when you right-click an executable in Windows Explorer and it shows "Description:" with what seems to be just the name of the executable without the file extension. I'm running GCC 3.4.5 (mingw-vista special r3) on Window...

PSExec: How can I show a JPG file on a remote computer?

Hi all. I need to start a document on a remote computer instead of an executable file, using PSExec. I tried to provide the file name of a jpg file to psexec associated with the -c command to copy the file, but the message returned for documents (and not executables) is always "The system cannot find the file specified." Anyone any id...