startprocessinfo

Run new process as different user in vb.net

I'm currently using a homegrown method to run a process as a different user in Vista, and I can't escape the feeling that's it hack-ish and less than ideal (in addition to the fact that it craps out UAC, crashing my app with a security exception, and forcing me to disable UAC altogether). My process consists of two projects (so two EXE f...

C# ProcessInfo and RedirectStandardOutput

I have an app which calls another process in a command window and that process has updating stats that output to the console window. I thought this was a fairly simple operation but I can't seem to get it to work. Am I missing something? string assemblyLocation = Assembly.GetExecutingAssembly().Location; System.Diagnostics.Process proce...

Start External Process with Impersonate Issue

Im deploying my website onto my new server (windows 2003) from my local pc (windows 7) and my local homeserver (windows 2008) and have run in to a issue. I have a process that starts up with the below code. It is passed a video file which gets converted. System.Diagnostics.ProcessStartInfo StartInfo = new System.Diagnostics.ProcessSta...

How to avoid the Windows (XP) Security Warning when launching a "DOS" command line within C#?

This question is related to this initial question asked a little while ago. Now, that I have chosen the extracting tool, I'm iterating through a given in command line parameter directory and subdirectories to extract the compressed .zip files. private static void ExtractAll(DirectoryInfo _workingFolder) { if(_workingFolder == null)...