exe

Does PY2EXE Compile a Python Code to run Faster?

℡╲_俬逩灬. 提交于 2019-12-01 23:45:29
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! 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 actually generate native code, the speed of execution should be about the same, possibly slower because of the

Python cx_Freeze for two or more python files (modules)

做~自己de王妃 提交于 2019-12-01 20:33:17
问题 There are example to build executable using one py file(module) as given here I have about 4 py files(modules), I would like to build executable which should include all the py files. How to build python executable when we have more then one python modules ? Example from here from cx_Freeze import setup, Executable setup( name = "hello", version = "0.1", description = "the typical 'Hello, world!' script", executables = [Executable("hello.py")]) This has hello.py if I have two files like

Embed a file into EXE file in VB6

你。 提交于 2019-12-01 19:12:32
问题 I am trying to make a setup program in VB6 that will install all the files that are required for the program. I use a CSV file to store data and read it using: file="C:\users\admin\desktop\table.csv" Open file For Input As fnum However the EXE file cannot be executed on another laptop as I get the error " file not found ". So: how to embed this CSV document into the .EXE file so that the program can run on any Windows PC ? 回答1: Open the project, Add-Ins menu item, open the Add-In manager &

Windows可执行文件制作工具exe4j使用笔记

烂漫一生 提交于 2019-12-01 19:12:25
exe4j可用于将jar包制作成Windows可执行程序,安装方法可参见我之前的一篇Blog: http://my.oschina.net/Tsybius2014/blog/725380 本文内容包括了制作jar包并使用exe4j工具将其制作成Windows可执行程序的详细步骤。 我使用的操作系统为Win7旗舰版,JDK版本为1.8 准备工作 建立一个Java工程,代码如下: /** * 计算整数加法 * @author Tsybius2014 * @date 2016年8月2日 * @time 下午2:35:16 * @remark */ public class CalcAdd { public static void main(String[] args) { if (args.length < 2) { System.out.println("程序需要至少两个数字作为入参"); return; } try { Long num1 = Long.valueOf(args[0]); Long num2 = Long.valueOf(args[1]); System.out.println(num1 + "+" + num2 + "=" + (num1 + num2)); } catch (Exception ex) { System.out.println(ex

将写好的Java程序生成在任何Windows机器上均可执行的.exe文件

泄露秘密 提交于 2019-12-01 19:12:16
准备工作: 一、将你的Java项目进行打包,有这种将项目生成Jar包的Eclipse的插件(Build Fat Jar); 二、准备好你的图标文件(.ico文件),如果没有可以去http://www.ico.la/用普通图片在线制作; 三、下载jet-760-eval-en-windows-x86.rar 大小:76.5MB。安装后运行进入首页面: 1、点击 ,这一项是对桌面应用程序,也就是J2SE的程序生成.exe文件; 2、 这是选择你的工作目录,也就是待会生成的一系列文件存放的地方; 3、 将选择工作目录旁边的复选框勾选上,然后就会出现第四步的图标; 4、点击 选择你刚才生成的Jar包的路径; 5、 选择你的程序入口,即:主类; 6、点击 进入下一步; 7、 这里点击Run它会试运行一下,也可以帮助你检测一下是否能正常运行; 8、 这里输入最终生成exe文件的文件名; 9、 添加版本和版权信息 10、 11、 选择.exe文件的图标 12、 建议勾选上,不然生成的.exe程序一运行就会弹出一个dos的窗口; 13、 这里是选择你的程序运行前的一个欢迎界面之类的东西,选择一张图片,下面的复选框是一些隐藏欢迎界面的触发操作; 14、 好了,点击Build就可以等待.exe程序的生成啦!最好先把其它进程都结束了,至少留1200MB的内存,这一步操作太吃内存了!不然你会等很久才能完成

how to set focus and launch the already running application on button click event in c#.net3.5?

血红的双手。 提交于 2019-12-01 19:03:46
i have been trying the code using mutex but im unable to open my exe after button click im successful in not making the multiple entries of the application on the taskbar at button click but my application is launched only when i close my form.. i want to launch my application on button click and if the application is already launched then i need to focus on the previous running application.. how could i able to resolve my need to launch as well as focusin and reopening that application again.. im sending u my code that im using on button click event and plz modify my errors... coding at

Windows 8 fat binary (exe for x86 & ARM)

為{幸葍}努か 提交于 2019-12-01 16:06:51
Does anyone (here) know if Windows 8 will have a sort of fat exe that one can compile with Visual Studio 2012 that will be supported on both ARM and x86 machines? I am guessing not, since you can't create fat binaries that will execute 32 or 64 bit code so far as I am aware (only solution available that I am aware of is 32 bit that creates a 64 bit executable on the fly). It seems like it would be helpful of Microsoft to extend exe or create a fat binary format for Windows 8 and beyond at least that would allow one to compile a single executable for Window's expanding palette of platforms.

How to export or execute a console application form project

拜拜、爱过 提交于 2019-12-01 14:23:58
How do I export or execute a console application form project, or find somewhere something like the .exe file of my console application? The reason I ask this is to run my project (C#) without using Visual Studio debugging. I found it in \bin\Debug , but it closes and I can't read the output... Is there a way to suspend the answer somehow? Kai Visual Studio puts the EXE file in the folder <ProjectDirectory>\bin\Debug . If your console application closes immediately after you double clicked it with your mouse, start it from the command prompt or put code as shown below at the end of your main

How to export or execute a console application form project

一笑奈何 提交于 2019-12-01 13:12:30
问题 How do I export or execute a console application form project, or find somewhere something like the .exe file of my console application? The reason I ask this is to run my project (C#) without using Visual Studio debugging. I found it in \bin\Debug , but it closes and I can't read the output... Is there a way to suspend the answer somehow? 回答1: Visual Studio puts the EXE file in the folder <ProjectDirectory>\bin\Debug . If your console application closes immediately after you double clicked

DLL include in exe.file?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 11:33:28
I build a project in C#. From another project I have 5 DLLs. Is It possible to include the DLL in the exe, that I only give 1 File to people and not x files? I tried ILMerge, but the output file ever opened a Command prompt with the application - useless. You can merge the exe and the dlls with the ILMerge.exe tool lmerge.exe /out:C:\SomePath\TheOnlyOneExe.exe C:\....\bin\Debug\someexe.exe C:\....\bin\Debug\somedll.dll /t:exe Take a look at ILMerage You can download it from here I realize this is an old issue, but for anyone thats looking for an answer I found the following link helpful for my