I use this code to open ssms from a folder through c#.
private void button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("ssms.exe", @"-S server-name -d db_name -E F:\\sql_files\Batch1.sql ");
}
Now i want to Auto execute ssms that has opened so that user dose not have have to press "execute" button or F5.
Thank you.