Forum posts for wordpad.exe

How come processStartInfo doesn't work

I want to open the document with wordpad.exe but it is still opening with microsoft word

I currently have:

string fullPath = helpFiles[index];
ProcessStartInfo psi = new ProcessStartInfo('wordpad.exe');
psi.FileName = Path.GetFileName(fullPath);
psi.WorkingDirectory = Path.GetDirectoryName(fullPath);
psi.Arguments = fullPath;
Process.Start(psi);

View complete forum thread with replies

Other posts related to wordpad.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

What does {0} mean when found in a string in c#?
How to wait for a process to terminate to execute another process in batch
How come processStartInfo doesn't work

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.