exe

Printing out the names of implicitly linked dll's from .idata section in a portable executable

自古美人都是妖i 提交于 2019-12-20 03:52:36
问题 I am trying to write a code which is supposed to print out the names of all the imported dll's in the exe by using the 'name' field of the IMAGE_IMPORT_DESCRIPTOR structure in the .idata section of the exe, but the program seems to be getting stuck in an infinite loop. Can someone please tell me how to get the names printed out correctly... #include<iostream> #include<Windows.h> #include<stdio.h> #include<WinNT.h> int main() { FILE *fp; int i; if((fp = fopen("c:\\Linked List.exe","rb"))==NULL

Does PY2EXE Compile a Python Code to run Faster?

雨燕双飞 提交于 2019-12-20 03:15:16
问题 I really like the PY2EXE module, it really helps me share scripts with other co-workers that are super easy for them to use. My question is: when the PY2EXE module compiles the code into an executable, does the resulting executable process faster? Thanks for any replies! 回答1: py2exe just bundles the Python interpreter and all the needed libraries into the executable and a few library files. When you run the executable, it uses the bundled interpreter to run your script. Since it doesn't

need help to compile python with pyinstaller

孤街浪徒 提交于 2019-12-20 02:54:31
问题 I want to distribute my python code on machines running windows 7+. It consists of a couple of .py files with the main in cprofiles_lmfit.py , together with a file cprofiles.ui to describe the GUI and a .pdf for the doc. I had a hard time (see build a .exe for Windows from a python 3 script importing theano with pyinstaller for instance) but eventually made a suitable binary using pyinstaller with the command line: pyinstaller --noupx --onefile --add-data="cprofiles.ui;." cprofiles_lmfit.py

How can I decrypt a PGP Self Decrypting Archive programatically? [closed]

╄→гoц情女王★ 提交于 2019-12-19 18:24:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Everyday I receive SDA files for whom I have the passphrase. The decryption is done by running the file and manually entering a passphrase in the program window that pops up. I'd like to avoid this manual step, and turn it into a step of an automated process. The way this would work is the following: As soon as

How can I set the name of my program in the Open With dialog?

爷,独闯天下 提交于 2019-12-19 11:05:39
问题 I want the program to read VLC (Move on end) : I've modified my Assembly Info to the following, to no avail: How can I alter the name displayed in the Open With dialog? 回答1: It is stored in the registry as the FriendlyAppName value under HKCR\Applications\YourExeName. Described in this MSDN page. 回答2: Per Hans' answer, this is what did it for me: export.reg Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Applications\VLCMoveOnEnd.exe] "FriendlyAppName"="VLC (Move on end)" [HKEY

creating executable for jython scripts

你。 提交于 2019-12-19 09:03:08
问题 for python scripts i was using py2exe to create executable file. Is there any way to create either .exe or .jar file for jython script? 回答1: Sharing how I achieve this. Thanks to EnigmaCurry for providing the framework. Jar Method from Jython wiki works quite well. The one drawback that it has is that all of the Java dependancies need to be exploded into the main jar root. This gets messy very quickly. So the approach uses One-Jar. It is a special class loader which can load a jar from

About ImageBase of .EXE in windows

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 04:33:38
问题 I just learned ImageBase is specified in PE format,and OS will load it to the exact position for .EXE , then comes the question: what if two .EXE is requiring the same ImageBase location? 回答1: Incase of 2 EXE's, they have Completely Different Address Spaces...Every Executable has its own space. This means, every time you execute an EXE, it is assigned its own independent 4GB (on 32bit systems, although the process can use just part of it, the rest goes the kernel.) worth address space. It's

Pyinstaller - ImportError: No system module 'pywintypes' (pywintypes27.dll)

人盡茶涼 提交于 2019-12-18 21:49:15
问题 I am trying to package my python script into an executable. I thought I would be pretty straight forward as I don't have very many imports. First off here are my imports: from __future__ import print_function from netCDF4 import Dataset import numpy as np import os from progressbar import Percentage,Bar,ETA,ProgressBar,RotatingMarker I know for a fact that numpy is supported I'm not sure about __future__ or os and I know for sure that netCDF4 and progressbar are not supported. I am using

Create .exe from .jar file using build.xml

柔情痞子 提交于 2019-12-18 08:56:32
问题 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. 回答1: 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

Create .exe from .jar file using build.xml

a 夏天 提交于 2019-12-18 08:56:25
问题 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. 回答1: 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