exe

how run exe file in c# [duplicate]

风格不统一 提交于 2019-12-10 23:47:38
问题 This question already has answers here : Closed 8 years ago . I made an application that requires functionality to run iisreset.exe. My application is on deploy in server. so iisreset should be server not client machine. I use process.start() but it reset iis of client machine. what code i should modify. 回答1: Use the Process class to execute a process. How To: Execute command line in C#, get STD OUT results // Start the child process. Process p = new Process(); // Redirect the output stream

Qt5 Deployment on Windows

◇◆丶佛笑我妖孽 提交于 2019-12-10 19:09:14
问题 I have been reviewing how to deploy my desktop application from Qt5 Creator to a set of .dll's and an .exe. The process as documented seems ridiculously complex: http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html. Please can you help me understand it better. Just copying the .dlls found using the Dependency Walker does not work -t tells me there is a missing entry point for Qt5Core.dll, and I have tried every single version of Qt5Core.dll on my hard drive. But I digress. It says

Trying to execute self extracting zip file silently in command line

末鹿安然 提交于 2019-12-10 19:01:52
问题 I have these self extracting zip files that I'm trying to extract on 2008/7 machines remotely. But they are coming in a way of .exe and it require user to double click and choose the extractions location. On WinZip support site they saying to use the /auto flag so the command will look like that: C:\deploy\.exe /auto C:\path\\ It starts the process in the task manager but it stuck there foever. When I'm opening the file in text editor it says: !This program cannot be run in DOS mode. So maybe

Python to exe in 1 file

你离开我真会死。 提交于 2019-12-10 18:34:29
问题 So far i have used cx_freeze to convert py to exe but i get many files. Is there a way to get it all into 1 executable? I have seen that PyinstallerGUI is able to that but it is for python 2.7. Can it be done with python 3.4 as well? Thank you all. 回答1: Pyinstaller works up to python 3.5. Once you've installed it (type in your terminal pip install pyinstaller ), you can do in your terminal: pyinstaller --onefile script.py where script.py is the name of script you want to compile into .exe

How to do automatic update of EXE project in C# and Azure Startup task?

若如初见. 提交于 2019-12-10 17:23:29
问题 I am facing a critical and interesting problem in my azure related project. I have created one web application and from there a user can download a plugin (EXE project in C#) and upload EXE and config file after unzip to their application's startup taks which are deployed on Azure platform and that exe sends data periodically to my web application to monitor user application on Azure. Now my problem is that if I make any changes in the EXE project, then how can users who have the old plugin

Replace exe file when application is running [duplicate]

蓝咒 提交于 2019-12-10 16:49:22
问题 This question already has answers here : Auto-update library for .NET? [closed] (12 answers) Closed 6 years ago . I have simple question - is it possible, to replace *.exe file (application file), when it's running? I mean i know that i cannot do that when app is running, but maybe it's possible to do something like: do application.shutdown() replace oldExe -> newExe application.restart(). 回答1: Create a helper application. You will run this "helper" application when you need it, and it can

How can I compile C files into an executable (.exe) file?

岁酱吖の 提交于 2019-12-10 16:27:41
问题 I am unsure about compiling C files into executables by using Cygwin under Windows 7. Can anyone please tell me how to do this? I've read some tutorials but still don't get it. I understand that I need a Makefile, but what shall I write into it to have an executable file after the compilation process? 回答1: There are several ways to compile c-files. Makefiles are just one possibility. But as you proposed it... Here are two tutorials for Makefiles: http://makepp.sourceforge.net/1.19/makepp

Can't run .exe files using exec() in PHP

只谈情不闲聊 提交于 2019-12-10 15:16:08
问题 I'm trying to use an .exe file to perform calculations and pass the output into PHP. I made a Hello World .exe file using C++, but I can't get PHP to execute it. If I run this command from the CMD, I get the correct output: C:\path\file.exe But if I do this in PHP, the output is an empty string: exec('C:\path\file.exe',$out); var_dump($out); But this displays the correct output: exec('ipconfig',$out); var_dump($out); I'm using WAMP on Windows 7. Edit: Here is the C++ program: #include

How to Get Version of an Executable file?

那年仲夏 提交于 2019-12-10 14:34:39
问题 Salvete! I am writing a vb.net program to update the readme files for my applications. I want to extract the version number from other compiled applications. I want to read the version number from the executable, not from its uncompiled resources. How can I do this in vb.net without using an external tool like reshacker? (I found this link, but it is for another language.) 回答1: You can use a function like this to do it: Private Function GetFileVersionInfo(ByVal filename As String) As Version

How to find the parent exe of a dll from inside the dll?

情到浓时终转凉″ 提交于 2019-12-10 13:42:04
问题 I need to do some stuff in a dll based on which process has loaded it. So being relatively new to windows programming I need help figuring out how to find the exe which loaded the current dll. So far I have been hard coding the exe file name, which is the dumbest thing to do :D 1) Some one suggested using GetModuleFileName() function. But this seems to crash my app.(I used 0 as the module handle). I am doing nothing fancy. I used the following syntax GetModuleFileName(0,&fileName,MAX_PATH)