Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

textbox to CMD.exe vb.net (2003)

Avatar of RobertoFreemano
RobertoFreemanoFlag for United Kingdom of Great Britain and Northern Ireland asked on
Programming
9 Comments1 Solution459 ViewsLast Modified:
Hi Experts,

I've created a little notepad clone... What I want to do is to be able to write the word - 'ping' followed by 'UNC' and on carriage return... launch CMD.exe and be able to ping that UNC. or to be able to highlight the word 'ping unc' and click a button which will do the same.

I've created the winform with a textbox and a button. It also has a process which launches CMD.exe. But haven't managed to get the selected text to populate cmd.

I've tried console.writeline(textbox1.text)
console.Readline()

But didn't work  :(

Any ideas?
Roberto
I may increase points as I'm sure i have a few tweaks to add...
ASKER CERTIFIED SOLUTION
Avatar of cookre
cookreFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answers