need code for only "COM8" into a string COM8 may be change according our com port change
- private void button21_Click(object sender, EventArgs e)
- {
- try
- {
- edltext.Clear();
- startInfo.FileName = "emmcdl.exe";
- startInfo.Arguments = " -l";
- process.StartInfo = startInfo;
- process.Start();
- edltext.Text = edltext.Text + "\r\n" + process.StandardOutput.ReadToEnd();
- }
- catch (Exception ex)
- {
- edltext.Text = (ex.Message);
- }