Prev: EXCEL FORMULA
Next: dvd burner
From: moon on 6 Apr 2010 18:49 I have XP Pro and Word 2007. I am attempting to find the path of Word 2007 on my computer. How do I do that? Where do I look? Thank you.
From: Family Tree Mike on 6 Apr 2010 20:16 On 4/6/2010 6:49 PM, moon wrote: > I have XP Pro and Word 2007. I am attempting to find the path of Word 2007 on > my computer. How do I do that? Where do I look? > > Thank you. YOu didn't say if you prefered vb.net or C#. You normally would never need to find this. You could do it with this code however (use a valid file to test however): static void Main(string[] args) { Process p = new Process(); p.StartInfo.FileName = @"c:\test\test.docx"; p.Start(); Console.WriteLine(p.MainModule.FileName); Console.WriteLine("OK"); Console.ReadKey(); } -- Mike
|
Pages: 1 Prev: EXCEL FORMULA Next: dvd burner |