exe

How to run an EXE file in PowerShell with parameters with spaces and quotes

∥☆過路亽.° 提交于 2019-11-26 12:03:48
How do you run the following command in PowerShell? C:\Program Files\IIS\Microsoft Web Deploy\msdeploy.exe -verb:sync -source:dbfullsql="Data Source=mysource;Integrated Security=false;User ID=sa;Pwd=sapass!;Database=mydb;" -dest:dbfullsql="Data Source=.\mydestsource;Integrated Security=false;User ID=sa;Pwd=sapass!;Database=mydb;",computername=10.10.10.10,username=administrator,password=adminpass" Keith Hill When PowerShell sees a command starting with a string it just evaluates the string, that is, it typically echos it to the screen, for example: PS> "Hello World" Hello World If you want

Signing a Windows EXE file

回眸只為那壹抹淺笑 提交于 2019-11-26 11:57:40
I have an EXE file that I should like to sign so that Windows will not warn the end user about an application from an "unknown publisher". I am not a Windows developer. The application in question is a screensaver generated from an application that generates screensaver applications. As such I have no influence on how the file is generated. I've already found out that I will need a code signing certificate from a CA like Verisign or instantssl.com. What I don't understand is what I need to do (if at all possible) to sign my EXE file. What is a simple explanation? Mel Green's answer took me

check if some exe program is running on the windows

久未见 提交于 2019-11-26 11:24:06
问题 How to check if some .exe program is running (is in process) on Windows? I\'m making java application which update one .exe program. So, if that exe program is used by some client, my application ask for closing exe program, and after closing automatically replace .exe file with new one. 回答1: You can run the following statement in your java program. Before that you need to know the name of the task in task manager . Say you want to see MS-Word is running. Then run MS-Word, go to task manager

How can I run another application within a panel of my C# program?

£可爱£侵袭症+ 提交于 2019-11-26 10:13:55
I've been reading lots on how to trigger an application from inside a C# program (Process.Start()), but I haven t been able to find any information on how to have this new application run within a panel of my C# program. For example, I'd like a button click to open a notepad.exe WITHIN my application, not externally. I don't know if this is still the recommended thing to use but the "Object Linking and Embedding" framework allows you to embed certain objects/controls directly into your application. This will probably only work for certain applications, I'm not sure if Notepad is one of them.

How do I open an .exe from another C++ .exe?

不问归期 提交于 2019-11-26 09:06:46
问题 What I want to do is open an .exe from another .exe. I really don\'t know how to do this, so I searched the internet. I tried some suggested methods from the internet, but it didn\'t work. Here\'s my code: #include <iostream> #include <windows.h> using namespace std; int main() { system (\"OpenFile.exe\"); system (\"pause\"); return 0; } When I run it in DEV C++, it doesn\'t compile and I get a error. Can someone please help me? 回答1: You should always avoid using system() because It is

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

巧了我就是萌 提交于 2019-11-26 08:51:56
问题 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. 回答1: You would use the GetFileVersionInfo API. See Using Version Information on the MSDN site. Sample: DWORD verHandle = 0; UINT size = 0; LPBYTE

How to execute JAVA program by double clicking on icon?

两盒软妹~` 提交于 2019-11-26 08:34:26
问题 I have written a java program. Now I would like to open my console java application without IDE, Eclipse etc., but just by double clicking on the executable version on my Desktop. I have exported the java project in Runnable .JAR file, but it cannot be opened. When I tried to open the application with cmd. java -jar ApplicatonName.jar and everything is fine. But this process is too complicated, and it\'s not user-friendly. So is there any possible way to do such thing with JAVA ? Thanks in

Kill some processes by .exe file name

白昼怎懂夜的黑 提交于 2019-11-26 07:25:42
问题 How can I kill some active processes by searching for their .exe filenames in C# .NET or C++? 回答1: Quick Answer: foreach (var process in Process.GetProcessesByName("whatever")) { process.Kill(); } (leave off .exe from process name) 回答2: My solution is: var chromeDriverProcesses = Process.GetProcesses(). Where(pr => pr.ProcessName == "chromedriver"); foreach (var process in chromeDriverProcesses) { process.Kill(); } 回答3: You can use Process.GetProcesses() to get the currently running processes

Wix - How to run/install application without UI

跟風遠走 提交于 2019-11-26 06:08:51
问题 I have exe file and a need convert it to msi and install it using Group policy on more computer in domain without user interaction. I found this tutorial https://stackoverflow.com/questions/19271862/wix-how-to-run-exe-files-after-installation-from-installed-directory/19274431#= But this using UI, where user muset clicking to button. I need after install msi launch exe file and install to computer on the background - without any ui. Is it possible? How. Thanks for help. 回答1: MSI installs

Create a single executable from a Python project

笑着哭i 提交于 2019-11-26 05:58:16
I want to create a single executable from my Python project. A user should be able to download and run it without needing Python installed. If I were just distributing a package, I could use pip, wheel, and PyPI to build and distribute it, but this requires that the user has Python and knows how to install packages. What can I use to build a self-contained executable from a Python project? Here are some common ones. Unless explicitly noted, all projects listed below are being actively maintained as of my last edit (August 2018). I've also included links to their respective websites, repos, and