Having Problem while opening command prompt from shared application
<p>I have a windows application which has been deployed on Shared Server. My Application will invoke a command prompt to do some DB operations. I am facing problems if I run the application from shared location. I am not facing any problems if I run the application with in the deployed server. The problem I have is as follows.</p>

<p>I pass a few arguments to the command prompt when invoking it. I get the following message if I open the application from shared location and it is not executing the arguments whatever I pass.</p>

<pre>
 CMD.EXE was started with the above path as the current directory. UNC
 paths are not supported.  Defaulting to Windows directory. Microsoft
 Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.
</pre>

<p>Command Prompt invocation code as follows:
Typically command arguments would contain <code>@"CD \&amp;&amp;C:&amp;&amp;CD\&amp;&amp;CD MyFolder &amp;&amp;CD MySubFolder\App.bat"</code> </p>

<pre><code>            ProcessStartInfo procStartInfo = new ProcessStartInfo("cmd",  command.ToString());
            procStartInfo.RedirectStandardOutput = true;
            procStartInfo.UseShellExecute = false;
            procStartInfo.CreateNoWindow = true;
            Process proc = new Process();
            proc.StartInfo = procStartInfo;
            proc.Start();
            string result = proc.StandardOutput.ReadToEnd();
            return result;
</code></pre>

<p>I am getting the same problem if I run the .bat file directly as well.</p>
