Is this possible?


I don't need to know how to do this, just if it is possible.  

This is what I would like to do:
Using VB.NET or C#.NET I would like to create a program that opens a Telnet session program that is already on the machine.  From there it will type keys that I will pre-set.  Then I want this program to execute a dts package, this can be done from a command prompt.  

Thanks a lot for your time.  The answer to this question is needed urgently.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike TomlinsonHigh School Computer Science, Computer Applications, and Mathematics TeachersCommented:
Yes, it should be possible...

Use Process.Start() to open the Telnet program and the command prompt application.

Then use SendKeys.Send() to send the keys.
You may need Win APIs such as keybd_event() to make it work properly though.
Or even PostMessage() to send input directly to a control in the target app.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.