Using ShellExecute to open file in browser
<p>I am trying to use ShellExecute to open a .txt file in the default browser. </p>

<p>I am currently using </p>

<pre><code>ShellExecute(0, L"open", L"http://E:/path/to/file.txt", 0, 0, 1);
</code></pre>

<p>This correctly creates a new window in the browser but tries to open</p>

<p>E/path/to/file.txt (without the ":")</p>

<p>and then can not find the associated file. The file location is definitely correct as manually adding the ":" back in the browser opens the file as desired.</p>