process.start

open .msg file using Process.Start()

南笙酒味 提交于 2019-12-25 16:53:47
问题 ProcessStartInfo startInfo = new ProcessStartInfo(); Process first = new Process(); startInfo.FileName = "OUTLOOK"; startInfo.Arguments = "http:\\blabla.com\EMAIL.msg"; startInfo.CreateNoWindow = true; first.StartInfo = startInfo; first.Start(); i used Process.Start to start up Outlook and open a .Msg file. how can i reuse the same process to open another .msg file without opening multiple processes/threads/instances of outlook? i have tried something like Process[] outlook = Process

Unable to launch shortcut (lnk) files from 32-bit C# application when the full path resolves to a 64-bit directory

情到浓时终转凉″ 提交于 2019-12-23 15:33:09
问题 I'm trying to launch programs in the Start Menu from a C# application, and nearly all of the items in the Start Menu are shortcut (lnk) files. When using Process.Start to launch these files, I found that I was getting "The system cannot find the path specified" error if the full path of the lnk file pointed to the C:\Program Files directory. I did some research with File System Redirection in Windows, so I tried disabling it, but I'm still getting the same error: // disable file system

Can Process.Start() take the system PATH into account?

会有一股神秘感。 提交于 2019-12-23 09:07:13
问题 I've been searching and experimenting for a while with this, but I have had no luck. I am trying to make a console program to automate some tasks that I couldn't quite do with a BAT file. I want to call "signcode.exe" from the Windows SDK, the bin folder with all the tools in my system PATH, and I can call "signcode" from anywhere, but Process.Start is ignoring the path. Current code: System.Diagnostics.Process sign = new System.Diagnostics.Process(); sign.StartInfo.FileName = signCommand

Process.Start slow when spawning more new processes

眉间皱痕 提交于 2019-12-23 05:36:12
问题 Processes launched via Process.Start seems to have around a 26-second delay when the spawned process (the "child") launches more new processes (the "grandchildren") - I'm trying to find a way to solve this issue. Specifically, this is occurring when the original process (the "parent") is an ASP.Net website or a Windows Service (tried both). We're attempting to run a server-side command-line tool to gather information, make modifications in the file system, and continue with other processes

Process.Start(/* path to pdf */) doesn't work with Adobe Reader on Windows 8

三世轮回 提交于 2019-12-22 03:22:26
问题 I'm able to create PDFs in my C#/WPF application and run them with the following: Process.Start(_pathToPDFFile); This works with Adobe Acrobat, but not with Adobe Reader. When Adobe Reader is installed, Process.Start() does nothing unless the Reader process is already running in the Task Manager. How can I get Adobe Reader to show the PDF when I attempt to start a PDF? 回答1: In our case, the problem was only reproducible when starting the application from Visual Studio - starting the .exe

Debugging when my code is started by external program with Process.Start()

只谈情不闲聊 提交于 2019-12-21 05:42:05
问题 Suppose I have a C# WinForms application and it is started by external program simply by using Process.Start(MyModule.exe) . I've tried to debug my code by using My project properties -> Debug -> Start Action -> Start external program (with setting proper Working directory of course). My enother attempt was Debug -> Attach to process UPDATE: Both my module and external program use one resource. So external program releases it, then calls Process.Start(), waits for my process to exit ans then

Process.Start, WorkingDirectory, start one exe from another

被刻印的时光 ゝ 提交于 2019-12-20 07:16:28
问题 I hope you will get my problem, dont know if I can describe it properly in english, but I will try :) Situation: Folder Structure: MainFolder/Sub1/Sub2 2 exe files: MainFolder/MainProg.exe and /Sub2/SecondProg.exe MainProg.exe is not from me, I wrote an .cs file inside /Sub1, kind of a plugin. (I think MainProg.exe kind of works like a compiler, cause it has a log window where I can see errors from my .cs file.. I think the author somewhere mentioned a JIT compiler ?!) Start MainProg.exe ->

Which permissions are required to enable process.start via asp.net application?

廉价感情. 提交于 2019-12-20 03:03:06
问题 I have an asp.net application which uses process.start to call an executable (Graphviz). All works well in my development environment, but when I move to production I'm not able to get the process to run. Here's the details. I created this simple sub to show the issue. Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load Dim ProcessInfo As ProcessStartInfo ProcessInfo = New ProcessStartInfo 'ProcessInfo.Domain = "xxxxxxx" ProcessInfo.UserName = "xxxxxx" Dim PwdString As

Hiding the process window, why isn't it working?

五迷三道 提交于 2019-12-19 18:56:14
问题 I have tried several things now to hide the window of a new process (in this case it's just notepad.exe for testing), but it just won't work regardless of what I try. I have read many posts now all saying the same so why isn't it working for me? I have a console app that is supposed to launch other processes without showing their windows. I have tried to make my console app launch notepad.exe without a window, but it just won't work. ProcessStartInfo info = new ProcessStartInfo("path to

Starting explorer.exe isn't working properly in C#

試著忘記壹切 提交于 2019-12-19 09:59:16
问题 I'm trying to make a simple application in C# that allows me to kill and enable explorer.exe. I need such program so that I can play Age of Empires 2 properly, because it does not like explorer.exe for some reason (I believe it has to do with Aero). So I made two buttons, one that enables explorer.exe and the other one disables it. Killing explorer.exe went ok, but enabling didn't. I read on a few sites that you have to use the Process.Start(); to start a process. So I made Process.Start(