executing outlook with parameters through c#

I am trying to launch outlook with import parameters for a email account, that i write in my c# code. When i run the import command in cmd, it works just fine. But when i try to get it to be executed through c# i keeps telling me that the path/file was not found. I have double checked, and i can see if i print the path its correct, and i can use the path in the cmd command with out any isues. Am i doing something wrong:

Process.Start("OUTLOOK.EXE / importprf " + Path.Combine(Path.GetTempPath(), "Mail.prf")); 

by gravballe via /r/csharp

Leave a Reply