Process process = new Process();
process.StartInfo.FileName = "yourProgram.exe";
process.StartInfo.Arguments = ..... //your parameters
process.Start();
using Process myProcess = new Process();
myProcess.StartInfo.FileName = "acroRd32.exe"; //not the full application path
myProcess.StartInfo.Arguments = "/A \"page=2=OpenActions\" C:\\example.pdf";
myProcess.Start();
如果你不想用 Reader 打开 pdf,而是用 Acrobat 打开,可以像下面这样修改第二行:
myProcess.StartInfo.FileName = "Acrobat.exe";
您可以查询注册表以确定打开 pdf 文件的默认应用程序,然后相应地在流程的 StartInfo 上定义 FileName。