OneTry { //Method One//call your own exe pass parameters//Process proc = new process (); //Proc. Startinfo.filename = @ "D:\\hotelsoft\\zk.exe"; //Proc. Start (); //Thread.Sleep (+);//pause for 3 seconds//foreach (System.Diagnostics.Process pro inSystem.Diagnostics.Process.GetProcessesByName ("ZK")) //{ //find and close a process//Pro. Kill (); //} //Method TwoProcessS
Previously always get the directory where the current process is located, with GetModuleFileName.How do I get the directory where the EXE file of another process is located in a process?The steps are as follows:(1) First look at the process's form name with the Remote process Viewer tool;(2) Get the process ID;(3) Get the Directory with GetModuleFileName ().The sample code is as follows:1HWND Hmxnavi =:: Fi
method One, save the following command as a batch file,
For example: Icorestore.bat
The code is as follows
Copy Code
Taskkill/im explorer.exe/fCD/D%userprofile%\appdata\localDel iconcache.db/aStart Explorer.exeExit
Double-click to run it and the icon will automatically recover
Attention:
The runtime will cause the desktop to disappear, do not worry, will soon be restored ...
method Two,1, enter HKEY_LOCAL_MAC
A two-step:1. Make Jar2. Make EXE program. Making Jars Install the Fat Jar Eclipse Plug-In
Using this plugin makes it easy to include all of the jar packages you need when you export the jar.Download: http://sourceforge.net/projects/fjep/files/After decompression, place the Plugins/net.sf.fjep.fatjar_0.0.31.jar jar file under the plugins of the Eclipse installation directory.Restart Eclipse.
Right-Select
Writing a program in Python is really simple, and when we develop a feature, especially a Python program with a form, you need to turn the Python program into a double-click EXE program. We need a third-party module Py2exe, which is the module that turns the PY into EXE. Just py2exe How to install, I do not elaborate here, directly to the official web download corresponding to the Py2exe version of Python,
Windows 7 EXE/desktop icon file Opening Method Association error, icon display all error, opening method associated with non-system default opening method repair solution
1. Fix the registry and restore the default open mode of the program file.
Create a text file on the desktop, copy the following code to repair the
Today I tried to package the Python program into a Windows executable (EXE format)Using Pyinstaller1. InstallationPip Install PyinstallerWebsite address: http://www.pyinstaller.org/2. PackingPacking method A:Pyinstaller path + filePS: Python program that can be closed after the program is executedPacking Method B:Pyinstaller-f path + filePS: For programs that need to be executed all the time, such as client or server form, do not close the program, (w
Python Environment 2.7.4
The final effect is as follows
Using the Pyinstaller
It takes two steps to pack an EXE here
First step
Command line direct pip install Pyinstaller in a Python environment
Second Step
When the download is complete,
Command line
Pyinstaller-f file name
You can generate EXE files, files in general c/user/your username/dist/under
If you wan
Today, a Windows Server 2003 Web server was set up, and it was found that it was not possible to download the. exe file in the Web after the Web page was opened, and was resolved by a research issue.The workaround is very simple, just set the Execute permission in the Web site properties to "script only" in IIS.Attached: Windows Server 2003 server cannot download exe
First, you need to install pyinstaller--using PIP to install the module (My Computer is a Python compilation environment Anaconda, if the computer is loaded with Python's IDE, it will go directly to the Python installation path, such as: "D:\ Python27\scripts\pip.exe ") My Anaconda2 installed on the G-disk so use the following path-EXECUTE statement: Pip.exe install pyinstallercmd into the Python installation directory (CD" G:\ Anaconda2\anaconda2\scripts ") Another benefit of using PIP installa
Package python's py file into exe,1. Install Pyinstaller first-use pip to install the module (I installed a python compiling environment named Anaconda on my computer. If the computer installed python IDE, directly go to the python installation path, for example, "D: \ python27 \ Scripts \ pip.exe") My Anaconda2 is installed on the G disk, so use the following path -- execute the statement: pip.exe install
After writing the first program that can crawl the source code of the Web page, it is found that if the Pythonldle program is not installed on the computer will not run out at all. So start looking for EXE files that can be packaged into a cross-platform run.None of Google's hard-to-understand, or what they say, is too difficult. But after their own simple Baidu, unexpectedly in Baidu found the simplest solution. (Here is a lesson, for some knowledge
(1) Insert the icon file and save it as a. RC file.Insert-> resource-> icon, introduce, select the. ICO icon file, and click "save" to save the icon as A. RC file, for example (ICO. Rc)(2) Add the RC file to the workspace and compile it.ProgramSwitch to FileView, right-click "file
First, we still need to use anti-virus software to kill the U disk Antivirus, remove the computer in those suffixes for exe execution virus.
Second, use Notepad to create a new text, and then enter
Windows Registry Editor Version 5.00[hkey_local_machinesoftwaremicrosoftwindowscurrentversionexploreradvanced
Folderhiddenshowall] "CheckedValue" =dword:00000001
Save and name the file name. REG (the filename
(1) Click the new button on the PowerBar toolbar to open the new dialog box, select the project tab, and select the application wizaard option.(2) Click OK to open the wizard(3) Click Next to enter the library included in the definition application.(4) Click the next button to go toProgramProject.(5) Click the next button to define the name of the executable file. If the project contains a resource file, th
Environment file, the file path has been added to the environment variable (or specify the exe file path) in PHP, through $ PHP, exec calls the commands in the external EXE file, always fails, please give advice
In PHP, exec alway
How to read the content of an EXE file. Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiAPI/html/delphi_20061123125818182.html
When I append some data to the end of the EXE file and want to read the data during the EXE operation, Delphi cannot open itself. How can I r
XP system to manually make EXE file associated with the repair device method
Create a new text document computer knowledge
XP system to make EXE file association Repair method:
1, the right mouse button on the desktop, pop-up shortcut menu point to "New", in the next Level menu to select "Text Document";
2. Open
I. debug version
In vcss, we program a general debugfolder. Open the debug folder in the file and you can see the. exe file. Generally, you can double-click the file to execute it, but in some cases it may not work. When you areProgramHosts file.
Ii. Release Version
1
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.