PDA

View Full Version : Visual Basic Help



Skeptikal
November 14th, 2002, 06:15 PM
Hey everybody !
about 3 probs with Visual Basic and Dos Shell...

1-How do you do to retreive specific data from a DOS/FTP/TelNET shell?
ex: a- Having a Dos prompt with C:\ how do you make appear the "C:\" (or d:\ or whatever it is) as a VB variable
b- Having an FTP/TelNet prompt asking for a username, how do you retreive it to VB ?

2-how do you insert a specific word/command/variable at a specific time and location?
ie: I know that I can open a shel using:
" Dim objShell AS Variant (example)
objShell.Run ("what_ever_my_comand_is") "
but I would like to be able, for example to allready have this shell opened and from a VB proggy insert any comand in the shell.

3-Is it possible (and, if so, how) to "blind" the shell so only the VB prog is visible ?
-------------------------
Just as an example:
I allready have a shell opened and want from a VB prog to make a ping a to be able to configure, stop, relaunch the ping and to make appear all the ping results to the VB prog IRL as they would appear (or formated) in the shell...
How could I code that?

Thanks very much for your help.

Sephiroth
November 14th, 2002, 09:26 PM
VB IMHO is a worthless language to learn. You cant take parts from it to other programming languages like C++ so they will be slightly harder to learn, VB is never used on any real applications only small time hobby ones or by people who dont know how to code in a better language..

Skeptikal
November 17th, 2002, 07:55 PM
Thank so much, Mr Rae ;)

I'm trying this right away ! And thanks for the OCX too.

I'll keep you informed. Thanks !