hello,
i'm a new programmer so please understand if my question is too easy.
What's the meaning of /c in following statements which is discussed in "System.Diagnos tics.ProcessSta rtInfo to start a session" article.
i'm a new programmer so please understand if my question is too easy.
What's the meaning of /c in following statements which is discussed in "System.Diagnos tics.ProcessSta rtInfo to start a session" article.
Code:
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 = @"[B]/c[/B] 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 }
Comment