When running ShellRunas.exe through my c++ program into explorer++ it does not take me to the correct folder
<p>When this command:</p>

<pre><code>C:/utils/ShellRunas.exe C:/utils/Explorer++/Explorer++.exe //foo/boo/test/review/Test/
</code></pre>

<p>is ran through the command prompt, it works perfectly.</p>

<p>However, when the command is executed through my program, it simply just opens up Explorer++ without accessing the proper folder.</p>

<p><code>//foo/boo</code> is a file server, if that matters. </p>

<pre><code>void planWrapper(void)
{
    const char* cmd = "C:/utils/ShellRunas.exe C:/utils/Explorer++/Explorer++.exe //foo/boo/test/review/Test/";
    runCommand(cmd);
}

bool runCommand(const char* cmd)
{
    char buffer[128];
    std::string result = "";
    std::shared_ptr&lt;FILE&gt; pipe(_popen(cmd, "r"), _pclose);
    if (!pipe) throw std::runtime_error("popen() failed!");
    while (!feof(pipe.get())) {
        if (fgets(buffer, 128, pipe.get()) != NULL)
            result += buffer;
    }
    return true;
}
</code></pre>