exe

MATLAB executable is too slow

主宰稳场 提交于 2019-11-26 16:27:11
问题 I converted my MATLAB program into a console-based application using the deploytool in MATLAB. The MATLAB .m file takes around 2 seconds to execute, but after I converted it into an executable and called the .exe , it takes 45 seconds to execute which is too long. I want to integrate the MATLAB program with PHP. Is there another efficient and fast way to do this? In my project, time is really a big factor (not the developing time but the execution time of the application). So is there a

Bundling Data files with PyInstaller 2.1 and MEIPASS error --onefile

旧街凉风 提交于 2019-11-26 16:09:27
问题 This question has been asked before and I can't seem to get my PyInstaller to work correctly. I have invoked the following code in my mainscript.py file: def resource_path(relative_path): """ Get absolute path to resource, works for dev and for PyInstaller """ try: # PyInstaller creates a temp folder and stores path in _MEIPASS base_path = sys._MEIPASS except Exception: base_path = os.path.abspath(".") return os.path.join(base_path, relative_path) When I run the py file (within IDLE), my app

How do I programmatically get the version of a DLL or EXE file?

萝らか妹 提交于 2019-11-26 15:18:59
I need to get the product version and file version for a DLL or EXE file using Win32 native APIs in C or C++. I'm not looking for the Windows version, but the version numbers that you see by right-clicking on a DLL file, selecting "Properties", then looking at the "Details" tab. This is usually a four-part dotted version number x.x.x.x. You would use the GetFileVersionInfo API. See Using Version Information on the MSDN site. Sample: DWORD verHandle = 0; UINT size = 0; LPBYTE lpBuffer = NULL; DWORD verSize = GetFileVersionInfoSize( szVersionFile, &verHandle); if (verSize != NULL) { LPSTR

How can I convert a JAR file to an EXE file?

我的梦境 提交于 2019-11-26 14:41:26
I want to created a JAR file and I want to run it on a client machine.So, I have a couple of questions: How can I convert the JAR file to an EXE file? How can I encrypt the JAR file's contents? The jar file could be extracted with WinRAR and the classes could be decompiled with any Java decompiler. How can I create an installer? My clients doesn't have any JVM and I don't want to ship JDK or JRE along, because they have big size. extraneon See this link: Java to Exe . It also explains what valid reasons are to do this, and when you should not. You can't really encrypt binaries as the machine

How to run abc.exe using php

末鹿安然 提交于 2019-11-26 14:17:16
问题 I want php file to run exe file and display the exe file content when user goes to a particular url. I am trying to run exe file using php function exec('abc.exe');. But I only see blank page. Anyone know how to solve it or how to run exe file from php file correctly? Many thanks in advance. 回答1: To access the operating system with php you do the following $answer = shell_exec("abc.exe"); echo $answer."</br>"; The $answer string will contain the information that the abc.exe prints out or

How can I convert a .jar to an .exe?

萝らか妹 提交于 2019-11-26 13:21:53
I want to convert a .jar to an .exe for microsoft. Is there any program converter for this? Also if there's one for Mac and Linux I would appreciate suggestions for those too. Launch4j works on both Windows and Linux/Mac. But if you're running Linux/Mac, there is a way to embed your jar into a shell script that performs the autolaunch for you, so you have only one runnable file: exestub.sh: #!/bin/sh MYSELF=`which "$0" 2>/dev/null` [ $? -gt 0 -a -f "$0" ] && MYSELF="./$0" JAVA_OPT="" PROG_OPT="" # Parse options to determine which ones are for Java and which ones are for the Program while [ $#

How to check if a file is signed in C#? [closed]

♀尐吖头ヾ 提交于 2019-11-26 13:07:50
问题 I\'m writing a program that need to load a few other files. is there a way to check if those files are signed or not, without right clicking them and check? I use 300-400 files that change every few days I need to check DLL/EXE/CAB/OCX/MSI (and maybe also vbs/js) is there a way to check it? 回答1: Assuming you want to check if a file is Authenticode signed and that the certificate is trusted you can pinvoke to WinVerifyTrust in Wintrust.dll . Below is a wrapper (more or less reproduced from

How do I compile my Python 3 app to an .exe? [closed]

社会主义新天地 提交于 2019-11-26 12:42:38
问题 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 last year . How do I convert my Python app to a .exe ? I made a program with tkinter and was wondering how to make it possible for others to use. I use Python 3.3. I searched for a bit but could not find anything. 回答1: cx_Freeze does this but creates a folder with lots of dependencies. py2exe now does this and, with the -

How do I convert a Python program to a runnable .exe Windows program? [duplicate]

試著忘記壹切 提交于 2019-11-26 12:08:44
问题 This question already has an answer here: Process to convert simple Python script into Windows executable [duplicate] 8 answers I am looking for a way to convert a Python Program to a .exe file WITHOUT using py2exe. py2exe says it requires Python 2.6, which is outdated. Is there a way this is possible so I can distribute my Python program without the end-user having to install Python? 回答1: Understand that every 'freezing' application for Python will not really secure your code in any way.

How do I set the version information for an existing .exe, .dll?

别来无恙 提交于 2019-11-26 12:04:56
As part of our build process I need to set the version information for all of our compiled binaries. Some of the binaries already have version information (added at compile time) and some do not. I want to be able to apply the following information: Company Name Copyright Notice Product Name Product Description File Version Product Version All of these attributes are specified by the build script and must be applied after compilation. These are standard binaries (not assemblies) compiled with C++ Builder 2007. How can I do this? While it's not a batch process, Visual Studio can also add/edit