System.Diagnostics.Process with cmd.exe not working?http://forums.asp.net/t/328119.aspx/1?System+Diagnostics+Process+with+cmd+exe+not+working+Wed, 03 Sep 2003 13:08:01 -0400328119328119http://forums.asp.net/p/328119/328119.aspx/1?System+Diagnostics+Process+with+cmd+exe+not+working+System.Diagnostics.Process with cmd.exe not working? I'm trying to use xcopy with cmd.exe and for some reason it just isn't working. I can call cmd.exe and pass it the parms of &quot;net send mypc hello&quot; and it will work flawlessly but xcopy will not. I can do this in winforms but with webforms its a different story. I gave the aspnet user admin rights and full rights the the folder but still nothing. Does anyone have any ideas on why this is not working? I am trying to keep from having to use impersonation. thanks in advance, von<pre class="prettyprint">Dim startInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo Dim p As System.Diagnostics.Process startInfo.FileName = &quot;C:\\windows\\system32\\cmd.exe&quot; startInfo.Arguments = &quot;/c xcopy c:\test\test.txt c:\test\test.exe\&quot; p = System.Diagnostics.Process.Start(startInfo) p.WaitForExit()</pre> 2003-09-03T13:05:07-04:00