exe

HTML hyperlink to call exe with parameters

早过忘川 提交于 2019-12-06 18:16:37
问题 -Hello, looking for some help. We currently have a winform app used to do approvals in our company. The app sends html emails to the "approvers" who read the relevant info in the email and click on a hyperlink which launches the app so they can do their approval. Currently this is done by including the following in the email html: <a href=file:///C:\Temp\test.exe>Click to Approve</a> This correctly launches the app, after a couple of security warnings which we are OK with. We use Outlook 2010

Converting .exe project to class library

独自空忆成欢 提交于 2019-12-06 17:01:03
问题 I have a semi-large C# .exe project in visual studio 2010 Ultimate, and I would like to convert it to a DLL class library. Is there an easy way to do this that doesn't involve creating a new class library project? Thanks beforehand. 回答1: Project > Properties > Application tab, change Output type to "Class Library". For the record, this isn't actually necessary. An EXE project works fine as an assembly reference. Assuming classes were declared public, something you might have to fix anyway to

Capture return value of an .net EXE in an bat file

六眼飞鱼酱① 提交于 2019-12-06 16:38:17
I am currently running an EXE application which is called from a bat file with some other exes. What iam trying to do is i want to return a value from EXE and pass it to an other EXE in bat file. I modified Main in my console to return type as an integer but unable to access value in Bat file except in ERRORLEVEL which i dont want to do as it may erase any potential errors. If i use ERRORLEVEL to capture return value for instance an error occured and it returns a error integer, how can i distinguish between the integer value which iam returning and this value. Please let me know your input on

Is it possible to run an executable from a web service?

坚强是说给别人听的谎言 提交于 2019-12-06 15:02:26
I have a web service and I would like to call an .exe file from within it. Is this possible? If so, how is it done? I have done that is c# 3.5 with WCF. You can run a exe from a web service. The exe will run on the machine the service is host and with the user the service has been configured. You only have to write a normal Process.Start(...) code. So the answer is yes you can and, of course, the exe will run on the web service host and not the client. If you need more details, be more specific in your question. 来源: https://stackoverflow.com/questions/717657/is-it-possible-to-run-an-executable

Run ruby program on computers without ruby installed

孤者浪人 提交于 2019-12-06 14:17:26
问题 Im new to programming in ruby and actually wrote an program that I would like to distribute to people that have windows computers and no ruby installed. I heard something about exerb but I'm not sure if this is the right thing for my issues or if there is something easier. Is there something I can use so that my ruby code can be run like an exe file? 回答1: You can use ocra to create an exe. This exe-file is a self-extracting ruby interpreter with you code. After installing ocra, you can start:

How to use ilMerge to merge dll into an exe file? [duplicate]

邮差的信 提交于 2019-12-06 13:06:58
This question already has an answer here : Closed 6 years ago . Possible Duplicate: Merging .dll with .exe Okay, so... I have all the files of ilmerge, along with the .exe (CabalMain.exe) and the dll (crckd.dll) in one path. C:\Program Files (x86)\Microsoft\ILMerge I shift>rightclick folder and open up command prompt. Since I'd like to merge the two I enter: C:\Program Files (x86)\Microsoft\ILMerge>C:\Program Files (x86)\Microsoft\ILMerg e\ilmerge C:\Program Files (x86)\Microsoft\ILMerge\Cabalmain.exe C:\Program File s (x86)\Microsoft\ILMerge\crckd.dll /out:C:\Program Files (x86)\Microsoft

py2exe - “The following modules appear to be missing”

耗尽温柔 提交于 2019-12-06 12:27:28
First time using stackoverflow so go easy please. I used py2exe before on my old computer and it worked fine. Unfortunately when trying to use it on my new one the exe. file just doesn't work. I get these errors when trying to convert the .py file. My setup .py from distutils.core import setup import py2exe setup(windows=['Test.py']) My Test.py to convert to exe. def Test(): print 'TEST' Test() The Errors I receive: The following modules appear to be missing ['IronPythonConsole', 'System', 'System.Windows.Forms.Clipboard', '_scproxy', 'c lr', 'console', 'modes.editingmodes', 'pyreadline

How to Open a Windows Program with JavaScript?

半腔热情 提交于 2019-12-06 10:00:18
问题 So I'm trying to make a projects hub for Windows (run locally with Localhost) that will open different apps (e.g. a CAD program) at the click of a button. Is this insecure? If not, how would I do it? If so, is there an alternative? Thanks! 回答1: A URI (Uniform Resource Identifier) will provide for the best user experience. A URI is a schema that can launch an application as well as pass data into the application. The most common example of a URI is the mailto: for launching a computer's mail

How to compile SDL program and run it without DLL

倖福魔咒の 提交于 2019-12-06 07:20:20
is it possible to compile SDL library program into exec and run it without having "sdl.dll"? for example let say i wrote sdl program and it works and everything but the thing is to run the program on windows, i need to have "sdl.dll" within the same folder or system folder. is it possible to compile it so that i can just take the exec with me without needing to have "sdl.dll" along with it? i am using visual studio 2010 express. Typically the procedure for this kind of stuff is: Download the source code for the library. In SDL's case: http://www.libsdl.org/download-1.2.php . Build the library

How to change windows exe file's icon in linux without wine?

喜欢而已 提交于 2019-12-06 07:18:23
问题 I know I can use ResHacker to change a resource from windows and I know I can use ResourceUpdate function to do the same problematically (again in windows). My problem is that I have to update the icon of a windows exe file in linux, without using wine. (the reason for not using wine is that this process should run on an automation server that change the files and sign them). I don't know even where to start from. 回答1: You can change a files metadata like this: gvfs-set-attribute '/path/to