executable

Producing executable jar in NetBeans

I'm using NetBeans 6.5 and for some reason it won't produce executable jar "out of the box". I set my project to be the main project, defined main class in the project properties "run" menu and it works flawlessly when I press F6 to run it. I looked at the manifest file and it indeed didn't define the main class there, and also omitted...

How to run a Qt application?

I have been using Qt creator to make applications using the Qt libraries. I can run these applications by just clicking the play button, but I want to learn how to make applications run just by double clicking on a .exe. So how can I do this? ...

How to set processor affinity on an executable in Windows XP?

I have a quad core system with third party application that once in a while spins several processes (always the same executable but several instances of it) and takes 100% of CPU time. I also have a couple of web services running on the same box (IIS and third party). The problem with the all cores being busy is that it makes this third...

Renaming executable causes error when run

I have created a small daemon (basically a console application that hides the console and runs). I need to send it to a user and have tried renaming the executable with a different extension, emailing it to the user, and having them rename it to the correct name. This seems to work when I email it to myself to test it. However, when ...

How to start an executable from a web page running on localhost?

I have an application that hosts a webcontrol (IE) and runs on localhost using Casini. I use it to run CruiseControl.NET (See http://www.codeplex.com/ccnetbuildstation for the app). Within custom CruiseControl.NET reports I would like to start other applications like Visual Studio. Any idea how I can launch an executable from a web p...

Determining C executable name

When we are compiling a C program the output is stored in a.out. How can we redirect the compiled output to another file? ...

How to find path from where current process/executable is running?

I am running some executables while connected to a local unix server box. Say, I'm trying to run an executable 'abc'. Now the server might have provided an alias for 'abc'.. How do I get to know of this path? As in, if I invoke 'abc', it might actually run it from, say, /opt/corp/xyz/abc .. How do I get to know from what path I'm invoki...

Write an executable .sh file with Java for OSX

So I am trying to write an .sh file that will be executable, this is how I'm currently writing it: Writer output = null; try { output = new BufferedWriter(new FileWriter(file2)); output.write(shellScriptContent); output.close(); } catch (IOException ex) { Logger.getLogger(PunchGUI.class.getName()).log(Level.SEVERE, null, ex); }...

Best way to run a tool from ASP.Net page

I have a developer tool that I want to run from an internal site. It scans source code of a project and stores the information in a DB. I want user to be able to go to the site, chose their project, and hit run. I don't want the code to be uploaded to the site because the projects can be large. I want to be able to run my assembly ...

Execute external file from Eclipse PDT?

I would like to add button to toolbar or menu item to menu in Eclipse PDT to run external command line exe or bat file. How to do this in Windows? ...

Python 3.0.1 Executable Creator

Does anyone know if there's a windows Python executable creator program available now that supports Python 3.0.1? It seems that py2exe and pyInstaller, along with all the rest I've found, still aren't anywhere close to supporting 3.0 or 3.0.1. Any help is greatly appreciated. Edit: I guess I could downgrade the program to an older vers...

Qt executable

Is there a quick, straightforward way to make a Qt application into an executable? I attempted to follow the instructions at http://doc.trolltech.com/4.1/deployment-windows.html but have been unsuccesfull thus far; I'm unable to Any help would be much appreciated. Thanks! ...

Is there a Perl equivalent to Python's `if __name__ == '__main__'`?

Is there a way to determine if the current file is the one being executed in Perl source? In Python we do this with the following construct: if __name__ == '__main__': # This file is being executed. raise NotImplementedError I can hack something together using FindBin and __FILE__, but I'm hoping there's a canonical way of doi...

in Java: programmatically determining addresses of C/C++ variables given a COFF/ELF/DWARF executable

This is a situation I run into now and then: For an embedded system which does not use virtual addressing, I have an executable file that was compiled from C or C++ code with debugging information included. It's usually in COFF or ELF/DWARF (I get those two mixed up) format. At runtime, on a PC, I would like to determine the address of...

How long a Batch file takes to execute

I'm wonderin' how I can write a script to calculate the time the script took to complete. I thought this would be the case, but obviously not.. @echo off set starttime=%time% set endtime=%time% REM do stuff here set /a runtime=%endtime%-%starttime% echo Script took %runtime% to complete ...

How to get output of exe in python script?

When I call a external .exe program in python, how can I get the output of printf in .exe application and print them on python IDE? ...

How do I tell if a win32 application uses the .NET runtime

How do I tell if an executable is a .NET application? I prefer not to have to install Visual Studio. But if I have to I will. A commandline program is preferred. ...

Reading/Writing machine code

I am not well acquainted to the compiler magic. The act of transforming human-readable code (or the not really readable Assembly instructions) into machine code is, for me, rocket science combined with sorcery. I will narrow down the subject of this question to Win32 executables (.exe). When I open these files up in a specialised viewer...

Determining Which Compiler Built a Win32 PE

How can one determine which C or C++ compiler was used to build a particular Windows executable or DLL? Some compilers leave behind version strings in the final executable, but this seems to be rarer on Windows than on Linux. Specifically, I'm interested in distinguishing between Visual C++ and the various MinGW compilers (usually fairl...

[VB.Net] Stand alone executable

I am working on a relatively simple program in VB.NET. I am trying to make the installation process as simple as possible for the user. I know its possible to use the executable from the debug directory as a stand alone executable, but are there any drawbacks to this approach? For example, if the user does not have .NET on their machin...