Run External Program .net
How can I run another application or batch file from my. In IIS to run external exe. Some installed program from being run using my. Jun 01, 2004 How can I run another application or batch file from my. In IIS to run external exe. Some installed program from being run using my. Tellmewhen Setup Shadow Priest here. Using VB.NET to run External Applications..NET Framework. I am trying to use the process command to run an external DOS-based program and then issue.
I want to run PaintShopPro 7 from a c# program to edit a photo. I'm running Win 7, VS 2012 &.net 4.5 If I open a command prompt and navigate to the directory which contains my photo and invoke PSP like this: D: My Pictures 2014_06_15 St Omer cathedral organ>'C: Program Files (x86) Jasc S oftware Inc Paint Shop Pro 7 psp.exe' 'img with a long name.jpg' PSP opens up with my photo all ready to edit. If I code: Process pEditor; pEditor = new Process(); pEditor.StartInfo.FileName = @'C: Program Files Jasc Software Inc Paint Shop Pro 7 psp. Shakuntala Devi Puzzles Pdf With Solutions on this page. exe'; pEditor.StartInfo.Arguments = 'img with a long name.jpg'; pEditor.Start(); pEditor.WaitForExit(); PSP complains that it cannot open the file. So, my question is: How can I make Process do what I want? Try putting the filename in quotes: pEditor.StartInfo.Arguments = ' 'img with a long name.jpg '; I tried that - StartInfo.Arguments got all bitter and twisted.however I'm sure Nick is on the right track. I wrote a program to display the args array in a listbox and the command prompt (where the args are in quotes) showed only one argument - the whole string complete with spaces whereas my program above suitably changed to invoke the ShowArgs program showed 5 elements in the array: img & with & a & long. Motomidman V0 70 on this page. So, the question now is how do I put the quotes around my file name without getting an error from mscorlib.dll: An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll Additional information: Illegal characters in path.