exe

Run exe from Sharepoint web part

喜夏-厌秋 提交于 2019-12-02 04:18:06
I have a button in a sharepoint web part that when clicked is supposed to launch the calculator: protected void Button1_Click(object sender, EventArgs e) { Process process = new Process(); process.StartInfo = new ProcessStartInfo("Calc.exe"); process.Start(); } However, when the button is clicked, nothing happens. Can someone tell me how to launch applications from a sharepoint web part? Quite frankly this is not possible. The code you have written is executed on the SharePoint server in the security context of the web app user. So if anything happens at all, a calculator is opened for the web

Make a program using only system-calls not windows dll's [duplicate]

﹥>﹥吖頭↗ 提交于 2019-12-02 04:14:28
This question already has an answer here: Windows system calls [duplicate] 1 answer I am trying to make a program work with system-calls not dll's ( kernel32.dll , ntdll.dll ). I know for example that the 0x2C (44) system call in windows 10 64-bit is the NtTerminateProcess buy that web page. Also when I disassemble the ntdll.dll i found that code: NtTerminateProcess: mov r10, rcx mov eax, 44 test byte [abs 7FFE0308h], 01h ;also what is in that memory address? jnz label syscall ret label: int 46 ;and why the 46 (the 2Eh windows NT interrupt) is here ret My question is how can for example

Printing out the names of implicitly linked dll's from .idata section in a portable executable

故事扮演 提交于 2019-12-02 04:04:58
I am trying to write a code which is supposed to print out the names of all the imported dll's in the exe by using the 'name' field of the IMAGE_IMPORT_DESCRIPTOR structure in the .idata section of the exe, but the program seems to be getting stuck in an infinite loop. Can someone please tell me how to get the names printed out correctly... #include<iostream> #include<Windows.h> #include<stdio.h> #include<WinNT.h> int main() { FILE *fp; int i; if((fp = fopen("c:\\Linked List.exe","rb"))==NULL) std::cout<<"unable to open"; IMAGE_DOS_HEADER imdh; fread(&imdh,sizeof(imdh),1,fp); fseek(fp,imdh.e

msmq - trigger - standalone executable invocation not working

旧时模样 提交于 2019-12-02 02:55:31
问题 I have been trying for the past few days to invoke an exe file by using msmq trigger. Its never being called. These are the steps I followed. Created a trigger mentioning the queue path with peeking checked. Enabled Checked Created a rule with no conditions so that the trigger will fire whenever a new message is obtained. And selected the radio button mentioning Standalone Executable. Provided the field with the correct location. Checked the location with RUN and confirmed that the exe is

running an Executable file and then waiting for that particular exe file to no longer be running

眉间皱痕 提交于 2019-12-02 02:50:44
I want to run an AHK executable and then have java wait for that executable to terminate it's own process at the end of it's script and then continue, is there a function to monitor whether or not a particular exe is running? And if it's running to wait until it has stopped? for example in AHK you could do: IfExist, Appname, { insert code } I would do this project using just AHK but because AHK is so flimsy with variables and incrementing i can't get it to work it's IF and Else Statements properly or if even possible, how can i make Java pause itself for a period of time all im really looking

Remove debug information from an “.exe” [duplicate]

一世执手 提交于 2019-12-02 01:48:53
问题 This question already has answers here : C# release version has still .pdb file (5 answers) Closed 2 years ago . If I put my C# program exe in a text editor, I can find debug information in it: How can I remove that? EDIT: I dont care about the pdb file, i only care about that there is a path to the pdb file in the executable. This path contains my name (coincidence in this example), my question is how i can remove THAT Path from the executable, NOT how to remove the pdb file itself. 回答1: OK,

msmq - trigger - standalone executable invocation not working

房东的猫 提交于 2019-12-02 01:44:46
I have been trying for the past few days to invoke an exe file by using msmq trigger. Its never being called. These are the steps I followed. Created a trigger mentioning the queue path with peeking checked. Enabled Checked Created a rule with no conditions so that the trigger will fire whenever a new message is obtained. And selected the radio button mentioning Standalone Executable. Provided the field with the correct location. Checked the location with RUN and confirmed that the exe is working. But when a new message is being sent to the queue the exe is not being called. Are you sure the

How to run a .EXE in an Azure App Service

故事扮演 提交于 2019-12-02 00:37:20
问题 I have an MVC .NET application, and I want to run some .exes on the server. The exes are jarsigner.exe and zipalign.exe, used to modify and re-sign an android APK. I want to run them from the Controller. It works locally, using a Process to launch the application, but I have cheated and used hardcoded paths to the .exe and to the folder with the stuff to be used by the exe. I've added the .exes to the top-level of my project in visual studio, and added a folder containing the files to be

need help to compile python with pyinstaller

☆樱花仙子☆ 提交于 2019-12-02 00:37:11
I want to distribute my python code on machines running windows 7+. It consists of a couple of .py files with the main in cprofiles_lmfit.py , together with a file cprofiles.ui to describe the GUI and a .pdf for the doc. I had a hard time (see build a .exe for Windows from a python 3 script importing theano with pyinstaller for instance) but eventually made a suitable binary using pyinstaller with the command line: pyinstaller --noupx --onefile --add-data="cprofiles.ui;." cprofiles_lmfit.py beside a problem with the theano module described in the above link, the binary still have a few

Remove debug information from an “.exe” [duplicate]

人盡茶涼 提交于 2019-12-01 23:48:09
This question already has an answer here: C# release version has still .pdb file 5 answers If I put my C# program exe in a text editor, I can find debug information in it: How can I remove that? EDIT: I dont care about the pdb file, i only care about that there is a path to the pdb file in the executable. This path contains my name (coincidence in this example), my question is how i can remove THAT Path from the executable, NOT how to remove the pdb file itself. MickyD OK, so yours is actually a curious question because what you are asking for is really nothing you normally would be concerned