Question Controlling Putty

KaosTheory

New member
Joined
Sep 13, 2008
Messages
2
Programming Experience
Beginner
Hey Guys

Another question i cant find out anything about. Does anyone know if its possible to make a VB.NET app control putty?

Any help is mucho appreciated.

Thanks
KaosTheory
 
Well, since putty is a console application, I guess pipes would be one way to control it. What you would normally do in a unmanaged situation would be:

  • Create a new process
  • Redirect stdin/stdout using two pipes
  • "Launch" putty in the new process

Now, how you do it, well; since I'm really new to VB .NET (in the 2005 flavor) I couldn't say (but I could give you a C solution for POSIX operating systems ;)), but look for pipes (System.IO.Pipes) and process (?) classes.

Edit: actually, forget what I just said. PuTTY isn't a console application... I mistaked it for psftp. So... I guess you'll have a hard time controlling putty from VB .NET except if PuTTY expose some kind of API... which I don't think it does...
 
Last edited:
Back
Top