process

Start Application only once (Mono)

蓝咒 提交于 2020-01-17 01:43:11
问题 I'm currently developing an mono application in c#, which I would like to start only once. I know, this can be achieved with mutex. But how can I bring the application to front using mono? I tried getting the Process via Process.GetProcessByName("AudioCuesheetEditor") but couldn't access the MainWindowHandle. How can I bring the running application to front? Thanks for you answers. EDIT: Now I have been able to get the MainWindowHandle, but it's a IntPtr. How do I bring this handle to front?

Is it possible to start a Windows process from Javascript running in a web page in Firefox or IE

纵饮孤独 提交于 2020-01-16 18:02:32
问题 I need to understand if Firefox (or IE) supports starting an external operating system (Windows) process from JavaScript code running in a <script> tag in the web page. As a trivial example, I want the user to be able to click a button ( <input type="button" .../> ) in the web page which would cause some JavaScript to be executed that would start Notepad (i.e. c:\Windows\System32\notepad.exe) (Note: in my case, I need to start a custom .exe created by one of the developers I work with, not

Is it possible to start a Windows process from Javascript running in a web page in Firefox or IE

天大地大妈咪最大 提交于 2020-01-16 18:02:07
问题 I need to understand if Firefox (or IE) supports starting an external operating system (Windows) process from JavaScript code running in a <script> tag in the web page. As a trivial example, I want the user to be able to click a button ( <input type="button" .../> ) in the web page which would cause some JavaScript to be executed that would start Notepad (i.e. c:\Windows\System32\notepad.exe) (Note: in my case, I need to start a custom .exe created by one of the developers I work with, not

Process vs Instance vs Runspace in PowerShell

一笑奈何 提交于 2020-01-16 17:44:37
问题 the [Powershell]::create() - method creates a new PowerShell-"Instance" either in the "current or a new runspace". Can someone explain how the terms process , instance , runspace and (maybe thread ) relate to each other in this regard. In laymen's terms if possible? 回答1: You can think of [Powershell]::Create() as a new powershell session on the separate thread. This session will have some default runspace created but you can change it to another one. Unlike Start-Process (separate process)

Getting CPU time in OS X

孤街浪徒 提交于 2020-01-16 08:58:41
问题 I have an objective-c application for OS X that compares two sqlite DB's and produces a diff in json format. The db are quite large (10,000 items with many fields). Sometimes this applications runs in about 55 sec(using 95% of the cpu). Sometimes it takes around 8 min (using 12% of the cpu). This is with the same DB's. When it is only using a small portion of the cpu the rest is available. There does not appear to be anything taking priority over the process. Adding "nice -20" on the command

On Terminal Server, how does a service start a process in a user's session?

旧街凉风 提交于 2020-01-16 05:14:29
问题 From a Windows Service running on a Terminal Server (in global space), we would like to be able to start up a process running a windows application in a specific user's Terminal Server sessions. How does one go about doing this? The Scenerio: the windows service starts at boot time. After the user has logged into a Terminal Server user session, based on some criteria known only to the windows service, the windows service wants to start a process in the user's session running a windows

Combine two applications into one icon on taskbar

给你一囗甜甜゛ 提交于 2020-01-16 04:35:06
问题 I have two applications. One is the main application and the other is the updater. A user launches with the updater - if an update is available it will download and extract, otherwise it will just launch the main application. I used two applications for this so that I am able to overwrite the main applcation. The issue is that the users have pinned the "Launcher" application on their taskbar, but when the main application launches it is not grouped under that icon and very confusing for them.

What decides which structure a process has in memory?

主宰稳场 提交于 2020-01-16 04:30:07
问题 I've learned that a process has the following structure in memory: (Image from Operating System Concepts, page 82) However, it is not clear to me what decides that a process looks like this. I guess processes could (and do?) look different if you have a look at non-standard OS / architectures. Is this structure decided by the OS? By the compiler of the program? By the computer architecture? A combination of those? 回答1: Related and possible duplicate: Why do stacks typically grow downwards?.

Redirecting the Standard Output/Input/Error into/from a textbox

坚强是说给别人听的谎言 提交于 2020-01-16 03:41:19
问题 I was making a VB.NET application that can be used to edit, compile and run C programs. I used the Process.StartInfo.RedirectStandardOutput property. But I'm unable to redirect it to a textbox, since it is not of the string type. How do I redirect the output coming from the cl.exe process to my textbox? 回答1: You need to redirect into the TextBox's Text property. For example: Dim proc As New Process proc.StartInfo = New ProcessStartInfo("tracert.exe", "10.0.0.138") _ With {

How to pipe a new command after ffmpeg background process completes?

我只是一个虾纸丫 提交于 2020-01-16 02:55:29
问题 This is my ffmpeg process: exec("/usr/local/bin/ffmpeg -y -i source.avi dest.mp4 >/dev/null 2>/dev/null & Now, I wish to execute a PHP file after the conversion is complete. Logically, this is what I have: exec("/usr/local/bin/ffmpeg -y -i source.avi dest.mp4 >/dev/null 2>/dev/null ; php proceed.php & This doesn't work though, since then PHP will hold up the process to wait till the ffmpeg conversion is complete. What I want is basically to call proceed.php after the conversion completes,