executable

PHP system() args

I have the following code that executes a C++ program and outputs it: <html> <head> <title>C++</title> </head> <body> <div><?php system("app.exe", $out); echo rtrim($out, "0"); ?></div> </body> </html> How can I make it so that you can pass arguments to the c++ program, say like this... If this was the c...

Generate Windows Compatible Binary from Xcode C++ Console Application

Hi All, I am using XCode for developing a C++ Console Application. After compiling XCode generates the Unix Executable File, which run on Mac perfectly. But doesn't work on windows. I have tried changing the active architecture as well from x86_64 to i386 but no luck. Is it possible anyway to generate executable like Borland C, or Turb...

Running a perl script on windows without extension

Hello I am trying to find a way to register the files with extension .pl as executables. I spent some time on the web looking for a solution, but I couldn't find anything. What I can do: I made a script, let's call it myscript.pl I can run it like this : perl myscript.pl [my script parameters] Now since the file is associated with pe...

Package bash script in "executable" for double-click execution (ideally platform independent)?

I wrote a number of bash scripts that greatly simplify the routine, but very tedious, file manipulation that my group does. Unfortunately, most in my group cannot open a terminal, let alone run scripts with complex arguments. Is there a way to nicely package a bash script into an executable (that accepts arguments) that runs nicely on ...

C# code that initiates a self reboot?

I want to write a program that will run on a specific web server and periodically browse to a page that is being hosted by that same web server (IIS) to check for certain text. If a certain condition was found to be true, it would initiate a reboot of the server (the one it is residing on). I can handle the checking the webpage part, th...

Mutliple Executables From Single C# Project in Visual Studio

I currently have a single solution with a single project and this generates executable A.EXE. The project consists of dozens of C# source files, forms, etc. I now need to generate executables B.EXE and C.EXE as well. B.EXE will use about 95% of the code base for A.EXE (i.e. a subset of functionality). C.EXE will use about 80% of the cod...

How to prevent a Linux program from running more than once?

What is the best way to prevent a Linux program/daemon from being executed more than once at a given time? ...

How to make an executable program from AppleScript

In order to run my AppleScript program I have to open it up and select "run." I want the program to just run when I click on it. I tried to compile it, but it didn't seem to make a difference or create a new file. ...

How does DOS load a program into memory?

What steps does MS-DOS take to load a COM or EXE file into memory? Are there still references online as to how this happens? The best I can think of is possibly referring to dosbox source. ...

IronPython -> .exe Executable & distribute with all DLLs HELP

Been trying to compile this IronPython program into a working .exe for the past 3-4 hours with no luck. I'm using the pyc.py that came with "IronPython 2.6 for .NET 4.0" D:\IronTestCompile>ipy pyc.py file1.py file2.py /out:Program /main:program.py /target:exe The program compiles out to Program.dll & Program.exe but the Program.exe ca...

Is it possible to execute code from the stack in standard C?

The following code doesn't work as intended but hopefully illustrates my attempt: long foo (int a, int b) { return a + b; } void call_foo_from_stack (void) { /* reserve space on the stack to store foo's code */ char code[sizeof(*foo)]; /* have a pointer to the beginning of the code */ long (*fooptr)(int, int) = (long (*)(int...

Create a executable .exe file from PowerShell Script?

Is ist possible to create a executable .exe file from a PowerShell Script? ...

How do I create an executable in .net

Hi I have to send a weekly email to subscribers. The content of this email comes from a database. I understand I have to set up a scheduled task on the server (I have to ask for this as I work remotely and don't have admin rights to do it). I did this in the past, where the email is sent by a .net page that gets called by the scheduled ...

Can a Winforms app unlock/replace its own exe file for auto-update?

I'm trying to create an auto-updating app using Winforms. I can't use click-once or the updater block because the app needs to run on Mono also. Once I download the new exe file from a webservice, is it possible to unlock the running exe file, replace it, and restart the app? ...

What is the __NULL_IMPORT_DESCRIPTOR good for (MSVC map file)?

I have a map file generated with microsoft visual studio. It contains a relatively big area named __NULL_IMPORT_DESCRIPTOR. What is this good for? It has something to do with linked dlls but I cannot figure out the exact purpose of it. ...

Where can I find a good reference for the ELF file format?

I'm in the process of writing a compiler that will be generating ELF executable files for the i386 platform. However, I need a good reference for the file format (information on headers, relocations, etc.). Is there such a reference? ...

how to run the exe file in internet explorer by using the .net application

I have the exe file of micromedia flash player. I am able to run this file from the .net application by using the following code private void button1_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("peopledisplay.exe"); //System.Diagnostics.Process.Start("iexplorer.exe", "peopledispla...

How to make a C++ EXE larger (artificially)

I want to make a dummy Win32 EXE file that is much larger than it should be. So by default a boiler plate Win32 EXE file is 80 KB. I want a 5 MB one for testing some other utilities. The first idea is to add a resource, but as it turns out embedded resources are not the same as 5 MB of code when it comes to memory allocation. I am think...

Change the executable name in Eclipse for C++

I've created a C++ project in Eclipse and currently it builds an executable called file.exe but I want to change this to "file". How do I do this? Thanks. ...

How to package JRuby programs for Windows as one-click executables

I'm porting a Ruby program to Windows, and I really need a super-simple package - something that user downloads, unzips, doubles clicks the obvious program file, and it's running. Without having to install JRuby, or even Java if it's possible. Or possibly downloads, runs installer, confirms a few silly questions, and selects obvious pro...