executable

Anyone know how to make a self-contained Awk/Gawk program on Windows

I'm using an awk script to do some reasonably heavy parsing that could be useful to repeat in the future but I'm not sure if my unix-unfriendly co-workers will be willing to install awk/gawk in order to do the parsing. Is there a way to create a self-contained executable from my script? ...

Is there a system where executing a program and calling a function is unified?

I would like to be able to do one or more of the following from the shell: - call any function from the program not only the main - pass parameters that are not only strings (not only argv) - have a program return not only int (the return code from main) - assign returned values to shell-level variables to be able to pass them to oth...

Executable sections marked as "execute" AND "read"?

I've noticed (on Win32 at least) that in executables, code sections (.text) have the "read" access bit set, as well as the "execute" access bit. Are there any bonafide legit reasons for code to be reading itself instead of executing itself? I thought this was what other sections were for (such as .rdata). (Specifically, I'm talking abou...

Embedding an external executable inside a C# program

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 proj...

How do I build an xcode project for the itunes store??? Please help!!

Ok, I'm abit of a newbe...need some help... I've got my apps running on my iphone, great..however, to list on the itunes store I need the "universal binary" thing... I've tried finding answers, but I can't seem to find a concise useable explanation to doing this in xcode...I alwase get errors when I try to build a binary...So PLEASE, ca...

How do I create executable Java program?

Hi I have programmed a Java Program in JCreator, everything is done, but I want to create an executable file from it, ie I dont want to have to run the program by loading the java classes and compiling then executing, but instead have it as a stand alone executable file. What the quickest way to do this? Thank You ...

Object files in an executable in Linux

Is there a way to find the object files from which the current executable is generated in Linux (RHEL to be specific). I understand that one can use "nm" to find the exported symbols, "ldd" to find dependent shared object. But I could not find command to find out the name of object (.o) files of which executable is composed of. Is it p...

How to create/run a .exe from a program? (C++)

Is it possible (and if so, how) to write a program in C++ that takes parameters, then run that program from another C++ program. Ie: I can create a function that adds two numbers: int add(int a,int b){return a+b;} Is it possible to do the same thing, except instead of a function, a separate C++ .exe? EDIT: Since a lot of people don...

How to set processor affinity from Batch File for Windows XP?

I've got a dual processor machine and I would like to launch an executable via a batch file on both processors. For example: (1) Launch Notepad.exe on Processor 1, and (2) Simultaneously, Notepad.exe on Processor 2 Currently, I'm using the following in my batch file, since my executable was "difficult" to launch and needed a return in...

Compiling Binaries with Clozure Common Lisp

Given a simple program such as the following, how would you: compile it as a seperate image file to be loaded by the implementation, and what command line arguments would you use to load it? Compile it as a standalone binary that can be loaded and run as is. Note: I tried adding ":prepend-kernel t" when saving the application only t...

VB.NET, Call an executable with parameter by a macro.

I have an application that used Macro. In this macro I would like to call an external executable like this: SYSTEM( "C:\Programme\Transform.exe" , "C:\Programme\Vectors.txt" , "C:\Programme\Vectors_Compensate.txt", "C:\Programme\Vectors_Final.txt" ) This executable reconstruct a modified file according to a...

I have an EXE that needs to run once per minute. Should I do it as a scheduled EXE or a Windows Service?

The title says it all, really. I know this is largely an opinion, but I'm interested if you have one and what your reasons are. Duplicate: How reliable is windows task scheduler for scheduling code to run repeatedly? ...

Should I change my Image Base?

In Delphi the Image Base linker option defaults to 00400000. Per the help: Specifies the preferred load address of the compiled image. This value is typically only changed when compiling DLLs. Default = 400000 Is there no effect for changing it on EXE's? What would the effect be? Is the address relative to each process? ...

Why Doesnt PHP Parse My Scripts?

I'm trying to get the php executable to parse scripts, but it's not working. i run something like this: php c:\test.php and test.php contains this: <? echo 'hello!'; ?> and that is exactly what running the command returns. It returns the raw code. How can I get it to actually parse the code and return "hello!" instead? ...

How can I run a program or batch file on the client side?

How can I run a batch file on the client side? An exe file? Just to open pre-installed program in client side? [Edit] Regarding ActiveX, I tried var activeXObj = new ActiveXObject("Shell.Application"); activeXObj.ShellExecute("C:\\WINDOWS\\NOTEPAD.EXE", "", "", "open", "1"); but this doesn't work. Any suggestions? ...

Is it possible to start a client-side app from Silverlight?

I have a simple company portal which allows users to start their apps from the browser. The URLs in the hypelinks are passed (using Javascript) to a signed applet to actually start the client-side apps. All clients are XP or Vista and all run IE6 or IE7. I have recently been looking at Silverlight and am wondering if I could do somethin...

How can I make a Perl script executable from everywhere by everyone?

I wrote a very simple perl script, and now I want to make it executable from everywhere. I know I could just drop it into /bin/, rename it from 'mytest.pl' -> 'mytest', and chmod +x, but is this standard practice? I noticed nothing in /bin/ is a perl script. Also, I want it to be able to log to /var/logs/mytest/* Are there any securit...

How can I access a running instance of a .NET standalone executable from a .NET Dll or Exe?

I have have an application which consists of an windows form project and a class library project. When it starts the executable sets a static value in the dll. using MyClassLibrary; namespace MyExeApplication { public partial class MainForm : Form { Hashtable ht = null; void Form_Load(...) { ht = ...

Getting the application executable name from T-SQL stored procedure

From a stored procedure in SQL Server, is it possible to get the name of the executable (ie MyApp.exe) that owns the connection? I know there is APP_NAME(), but that appears to just return whatever string was passed into the 'Application Name' parameter in the connection string. If this is possible, how can it be done? Thanks. ...

Jar executable that cannot be decompiled

How can I package my Java application into an executable jar that cannot be decompiled (for example , by Jadclipse)? ...