How do you open a file for editing from C# code, i.e. equivalent to the user right-clicking on it and selecting 'Edit' instead of 'Open'? I've got Process.Start(<filename>)
for the equivalent of 'Open', but I specifically need the 'Edit' option in this case.
If there isn't an easier way of doing it, I'm assuming I probably need to inspect the registry for the 'Edit' action associated with the file type and invoke that action somehow, but I'm not sure where to look or how to do so reliably.
Anyone know the best way of doing this?