title: how to pass argument in console application which having space using c#
body: <p>I have a console file, which takes 6 arguments
  <img src="https://i.stack.imgur.com/SWHPG.jpg" alt="enter image description here"></p>
  
  <p>I pass this argument using C# application, below code</p>
  
  <pre><code>try
  {
      intializeConnections();
      string consolepath =    System.Configuration.ConfigurationManager.AppSettings["ConsoleApp_backup"].ToString().Trim();
      // string backupPath = System.Configuration.ConfigurationManager.AppSettings["DataBase_BackupPath"].ToString().Trim();
      string backupPath = @"D:\backup\Smart Tracker\";
      System.Diagnostics.Process proc = new System.Diagnostics.Process();
      proc.StartInfo.FileName = consolepath;
      // proc.StartInfo.Arguments = String.Format(consolepath, Pc, database, UserName, Password, "F", bacPath);
      proc.StartInfo.Arguments = String.Format("{0} {1} {2} {3} {4} {5}", serverName, DatabaseName, UserId, pw, "F",backupPath );
      //set the rest of the process settings
      proc.Start();
  
      clsGlobleFunction.InsertAuditTrailRecord_new(this.Name, "", "", "FullBackup Of Databse Done Sucessfull", clsGlobleFunction.ActiveUser);
      MessageBox.Show("FullBackup Done Successfully!!!!");
  }
  catch (Exception ex)
  {
      MessageBox.Show(ex.Message + "Give Correct Path in input !!");  
  }
  </code></pre>
  
  <p>Its work perfectly,  but whenever i pass argument which have space in it, like in this code in backup Folder path, i am passing folder path <strong>string backupPath = @"D:\backup\Smart Tracker\"</strong>
  so, its not working, console application consider space as a ending of argument,
  and showing this error..
  <img src="https://i.stack.imgur.com/d49jb.jpg" alt="enter image description here"></p>
  
  <p>so, how can i pass argument which have space!!!!</p>