[Last Call] Learn how to a build a cloud-first strategyRegister Now


Is this possible?

Posted on 2006-04-14
Medium Priority
Last Modified: 2010-04-23

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.
Question by:jjrr007
1 Comment
LVL 86

Accepted Solution

Mike Tomlinson earned 2000 total points
ID: 16454549
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.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month17 days, 16 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question