exe

How can I find out if an .EXE has Command-Line Options?

只谈情不闲聊 提交于 2019-11-29 20:51:46
Suppose you have an .EXE and you want to check if it has Command-Line Options. How can one know if the .EXE has this ability. In my case I know that Nir Sofers WebBrowserPassView.exe has the ability to start it via cmd.exe and WebBrowserPassView.exe /stext output.txt. But how can I find out if I don't know? Adam The easiest way would be to use use ProcessExplorer but it would still require some searching. Make sure your exe is running and open ProcessExplorer. In ProcessExplorer find the name of your binary file and double click it to show properties. Click the Strings tab. Search down the

Loading an EXE as a DLL, local vftable

你说的曾经没有我的故事 提交于 2019-11-29 20:22:43
问题 I have an exe named test.exe which is usually used as a stand-alone application. I want to use this exe as a module (a dll) inside another application, app.exe. The code in test.exe does something really simple like: void doTest() { MyClass *inst = new MyClass(); inst->someMethod(); } Where someMethod() is virtual and MyClass has a virtual d'tor. doTest() is exported from test.exe and thus a lib called test.lib is created app.exe is linked with this lib to statically load test.exe when it

Call an exe from Java with passing parameters with writing to stdout and reading from stdin

给你一囗甜甜゛ 提交于 2019-11-29 18:09:48
I have read this question: Java Programming: call an exe from Java and passing parameters And this answer is good enough https://stackoverflow.com/a/5604756/2674303 But I additionally want to pass parameters to stdin of external process and read from stdout of this process. How can I do this? My efforts : main method: public class ProcessBuilderTest { public static void main(String[] args) throws IOException, InterruptedException { ProcessBuilder pb = new ProcessBuilder("C:\\Program Files\\Java\\jdk1.8.0_111\\bin\\java", "-cp", //class path key "C:\\Users\\redwhite\\IdeaProjects\\HelloMyWorld\

Create .exe from .jar file using build.xml

丶灬走出姿态 提交于 2019-11-29 15:36:00
Is it possible to create an exe from the jar file using some script (build.xml). Currently I use a build file to create a jar and then create exe with Launch4J. Now I would like to make an exe of the application via a script. I would like to know if it is possible. You should enhance your research skills. It took me 2 seconds to find the part of the Launch4j documentation, where the special launch4j Ant task is explained. Look here: http://launch4j.sourceforge.net/docs.html#Ant_task So yes, it is possible. You can use Ant with that special task and it is documented. 来源: https://stackoverflow

How to my “exe” from PyCharm project [duplicate]

徘徊边缘 提交于 2019-11-29 13:56:10
问题 This question already has an answer here: Create a single executable from a Python project 2 answers Writing some project on Python via PyCharm. I want to get an exe file from it. I've tried to "Save as->XXX.exe" - but ,when i'm trying to execute it there is an error "file is not supported with such kind of OS" p.s. i've got win7 x64,it doesn't work on x32 too. 回答1: You cannot directly save a Python file as an exe and expect it to work -- the computer cannot automatically understand whatever

Difference between .exe and the .exe returned from Inno Setup - Installed application fails [duplicate]

折月煮酒 提交于 2019-11-29 12:54:26
This question already has an answer here: Application does not work when installed with Inno Setup 1 answer I don't know what the issue is, but for some reason my .exe file and the .exe file that I get after running the installer from Inno Setup are not the same. No error codes thrown or anything, it compiles perfectly, but the toolbars in my application (the program was made with Java swing) do not contain their buttons correctly. I have two JToolBars that hold JButtons (each button has an image). When I used Launch4j to wrap my program into an exe it worked perfectly, but when I run the exe

Merge two exe files into one programmatically

只愿长相守 提交于 2019-11-29 11:58:28
问题 Is there a way to merge two exe files into one, programmatically, so that running it would execute both older exe files together. I found some things on google about injecting code or dll files but is it possible two merge two exe files or to inject exe into exe? Thanks in advance. [EDIT] Thanks everyone. Just for those who said that it's not possible, I have to say I almost did it in the end in the way some suggested. It almost goes like this (I can't remember all of it cos it was a long

Running exe inside WinForm Project Tab

ε祈祈猫儿з 提交于 2019-11-29 10:59:47
问题 I am interested in assistance in doing the following with a winform application I am writing to open in a tab an .exe in c# in the Visual Studios 2010 IDE. I'm currently able to open the program via button click in the desired tab using the following code: string str = @"-INSERT FILEPATH HERE-";//took file path out as i have a few exes i'm wanting to add. Process process = new Process(); process.StartInfo.FileName = str; process.Start(); now how can i make it so this executable opens as the

Delphi decompiling [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 10:26:06
问题 Why decompiling a delphi exe, is so easy, compared to others executables built with other programming languages/compilers? 回答1: There are a few things that help with reversing delphi programs: You get the full form data including the name of event handler methods All members with published visibility have metadata used with RTTI The compiler is pretty bad at optimizing. It does no whole program optimization and the assembly is usually a straight forward translation of the original source with

How to tell if a windows PE file is a console subsystem or a windows subsystem programmatically?

南笙酒味 提交于 2019-11-29 08:32:32
Basically I need a program that will sort windows .exe's from the console counterparts. A file scanner: SortExe(file exe) { if (IsPeWindows(exe)) { AddToList1(exe); } else if (IsPeConsole()) { AddToList2(exe); } } How do I implement IsPeWindows or IsPeConsole() ? I do not particularly mind what language solutions come in so long as it's one of c, c++, c# or visual basic. Pass SHGFI_EXETYPE to SHGetFileInfo() & examine the hi/loword of the return value as explained in the link. 来源: https://stackoverflow.com/questions/7739571/how-to-tell-if-a-windows-pe-file-is-a-console-subsystem-or-a-windows