exe

How to run .exe from C#

拟墨画扇 提交于 2019-12-11 05:19:27
问题 I am developing wpf application in C#. I am using grib files in my application. I want to convert this grib file content into csv file. From command prompt I can easily do this. For this in command prompt I need to go to the folder location of degrib.exe i.e. c:\ndfd\degrib\bin. For any other path command will not get executed. I am using the following commands C:\ndfd\degrib\bin\degrib D:\Documents\Pacificwind.grb -C -msg 1 -Csv C:\ndfd\degrib\bin\degrib D:\Documents\Pacificwind.grb -C -msg

Create a .NET program that produces custom EXE's

不羁的心 提交于 2019-12-11 04:55:34
问题 I want to create a program that produces an executable slideshow. So I need it to output an EXE with some required code and certain embedded resources (pictures) in it. Does .NET provide such capability? 回答1: You can use CSharpCodeProvider class to compile code at runtime and add embedded resources. Have a look at this article where I explain how to do it: SlideShow Builder 回答2: This is easy to accomplish. You can add pictures as embedded resources and then use the technique of Reflection to

Embedding an external executable inside a C# program and run it without creating new file [duplicate]

三世轮回 提交于 2019-12-11 04:45:34
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How do I invoke an exe that is an embedded resource in a .Net assembly? How do I embed an external executable inside my C# ( I suppose via Resources, but I don't know about other ways, so this option is needed in this question - too ) and run this program inside main running program without writing it to the disk. How could it be done? 回答1: Despite Hans' comment I think it is pretty easy* (assuming code have

Change exe icon based on define C#

☆樱花仙子☆ 提交于 2019-12-11 03:44:03
问题 I am creating a project for two different people and I would like to change the icon via define. For example: #if customer1 //add code to select c:\path to resources\myimage1.ico for exe icon #else //add code to select c:\path to resources\myimage2.ico for exe icon #endif I know you can manually select which icon you want here: https://msdn.microsoft.com/en-us/library/339stzf7.aspx But the define way make sense for us using git so we don't have to keep reuploading someone else's image. We can

Embed and reference an EXE in c#

余生颓废 提交于 2019-12-11 03:42:03
问题 I am looking to create and call a reference to a compiled .net exe file in a c# program and spawn it from my C# while outputting a single .exe. Is this possible or am I wasting my time? 回答1: I'm not sure if it is what you need, but you can reference any dotnet exe just as you would reference a dll. The target platform (x86, x64) must be the same if set in the referenced exe. 回答2: You might be looking for the Process.Start: Process myProc; // Start the process. myProc = Process.Start("C:\path

What is the fastest way to run an exe command many times in C#?

ぐ巨炮叔叔 提交于 2019-12-11 03:19:09
问题 My code (written in C#) runs an exe command many times (800 times average). Currently I run the exe command as a Process in C#: var process1 = new Process() { StartInfo = new ProcessStartInfo() { FileName = "latex", Arguments = String.Format("-quiet -output-directory=\"{0}\" \"{1}\"", equationDirectory, equationTEX), WorkingDirectory = equationDirectory, CreateNoWindow = true, UseShellExecute = false, RedirectStandardError = true, RedirectStandardOutput = true } }; process1.Start(); This is

PyInstaller on mac can't find libpython2.7

依然范特西╮ 提交于 2019-12-11 02:09:12
问题 I am trying to make a binary version of a Python script using PyInstaller 2.0. I am using a basic "hello world" tkinter script but imported a few dependencies that i need for a project to test Pyinstaller out. I am on a mac running Yosemite 10.10.5. This is my script: #!/usr/bin/env python from Tkinter import * import Tix import tkMessageBox from sklearn import linear_model, decomposition, preprocessing from sklearn.preprocessing import Imputer from sklearn.cross_validation import cross_val

Pyinstaller .exe does not produce expected outcome

不想你离开。 提交于 2019-12-11 01:38:01
问题 This is the first time that I have used pyinstaller to build an .exe of my .py on a windows machine. I have successfully generated the .exe, but when I run the code it does not produce the .csv file that my code should produce. On a side note, when I run my script within the IDE it successfully generates the .csv that I expect it to. The bottom is the part of my code that should generate the output. writer = pd.ExcelWriter('Desired_Output.xlsx', engine= 'xlsxwriter') df3.to_excel(writer,

What does MapViewOfFile return? [duplicate]

大憨熊 提交于 2019-12-11 01:27:22
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Why won't the loader load at the desired location "MapViewOfFile", does this function map a file into the virtual memory and return the base address of the mapped memory?? If yes, then the following code should output 0X400000, beacuse by default, exe's are loaded at this location, but the output is 0X360000. Why?? #include<iostream> #include<Windows.h> #include<stdio.h> #include<WinNT.h> int main() { HANDLE

Installshield after successful install, does not launch exe

。_饼干妹妹 提交于 2019-12-11 00:25:38
问题 I am using a single MSI project. After a successful install, I select the checkbox to launch my software, and I click finish. It does not launch my software, even though I checked it and clicked finished. The only thing I found so far towards ensuring the launch directory was valid, was the property tab for the Checkbox for the "Launch Product". Its property is set as "LAUNCHPROGRAM". Do I have to provide the exe source path for it to launch? I do not see anything related to it. I would