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.
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.