TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kristifor Milchev
NA
7
991
C# Filepath problem.Hello so i am starting a process
Apr 13 2014 4:10 AM
As the title says i am starting a process using System.Diagnostics the file opens and i get everything i want from it but alas i get something that i don't want.When the file opens along with the information that it needs to present it presents the path to that file Here is the code that i use if anyone could help me get the things right i'll be thankfull to him/her.
Here is the code that i use:
private void button1_Click(object sender, EventArgs e)
{
Process New = new Process();
New.StartInfo.FileName = @"C:\Users\Kristifor\Desktop\Flash fixer\List Disk.bat";
New.StartInfo.UseShellExecute = false;
New.StartInfo.RedirectStandardOutput = true;
New.StartInfo.CreateNoWindow = true;
New.Start();
textBox1.Text = New.StandardOutput.ReadToEnd();
string g = textBox1.Text;
MessageBox.Show(g);
}
Reply
Answers (
2
)
error of reading data in socket programming
Can't insert pictures in crystal report (VS 2010, CR 13.0.5)