I have a windows application in C# which has the following method
public void InitiateSession(string server,string userName, string passWd
)
{
//To start the command
System.Diagnostics.ProcessStartInfo psi = new
System.Diagnostics.ProcessStartInfo();
psi.FileName = @"C:\WINDOWS\system32\cmd.exe"; // Path for the cmd
prompt
psi.Arguments = @"c\ net use \\servername\IPC$ /USER:domain\user
password"; // Arguments for the command prompt
psi.WindowStyle =System.Diagnostics.ProcessWindowStyle.Hidden; //
Hide the window
System.Diagnostics.Process p =
System.Diagnostics.Process.Start(psi);//Run
}
but this does not initiate the session. can any one please help me.
*** Sent via Developersdex
http://www.developersdex.com ***