string fileNewPat = Application.StartupPath; string fileName = fileNewPat+@"\doc\程沐喆.doc"; if (File.Exists(fileName)) { Process process1 = new Process(); process1.StartInfo.FileName = fileName; process1.StartInfo.Arguments = ""; process1.StartInfo.WindowStyle = ProcessWindowStyle.Maximized; process1.Start(); } else { MessageBox.Show("文件不存在"); } 这段代码可以使用默认程序打开word文档。
举一反三
- In the following basic forms of the transition process, which is stable?( ) A: Attenuation oscillation process and aperiodic divergence process B: Monotone process and equal-amplitude oscillation process C: Divergent oscillation process and equiamplitude oscillation process D: Attenuation oscillation process and monotone process
- The swimming pool is () construction. A: in the process of B: in the process for C: on the process of D: on the process for
- 下面不属于File类构造方法的是()。 A: File(String filename) B: File(String directoryPath,String filename) C: File(File f, String filename) D: File( )
- 48. Ideational function includes material process, mental process, relational process, behavioral process, verbal process, and existential process.
- The four processes of the maxilla include A: the zygomatic process B: the temporal process C: the frontal process D: the alveolar process E: the palatine process