How to launch pword.exe in .NET 2005 'Smart Device project'
-
Hello, I am trying to launch pword.exe using CreateProcess but its failing. I have used following code : - BOOL a = CreateProcessW(L"pword.exe", L"", NULL, NULL, TRUE, 0, NULL, NULL, 0, 0); a = CreateProcessW(L"\\windows\\pword.exe", L"", NULL, NULL, TRUE, 0, NULL, NULL, 0, 0); Can anybody of you tell me why is it failing? Thanks in advance!
-
Hello, I am trying to launch pword.exe using CreateProcess but its failing. I have used following code : - BOOL a = CreateProcessW(L"pword.exe", L"", NULL, NULL, TRUE, 0, NULL, NULL, 0, 0); a = CreateProcessW(L"\\windows\\pword.exe", L"", NULL, NULL, TRUE, 0, NULL, NULL, 0, 0); Can anybody of you tell me why is it failing? Thanks in advance!
Try the following which worked for me: Process myProcess = new Process(); myProcess.StartInfo.FileName = "\\Windows\\pword.exe"; myProcess.StartInfo.Verb = "Open"; myProcess.Start(); Regards, Dave
Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com