ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   telnet without sendkeys (https://www.excelbanter.com/excel-programming/332261-telnet-without-sendkeys.html)

[email protected]

telnet without sendkeys
 
hi
i wish to telnet to a unix server, execute some commands and get the
results onto excel range. I have tried opening telnet application using
sendkeys but its not what i want. Any other ways or some Active X
controls that might let me do this task?
thanks


keepITcool

telnet without sendkeys
 
either get yourself an windows based telnet client that supports
automation... just find some shareware you like.

OR..use batchfile approach:

eg.
excel creates batchfile.
excel starts batchfile

batchfile start telnet
telnet create a results/logfile
batchfile create done.txt

excel waiting for done.txt in delayed loop
then process the resultsfile.



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


wrote :

hi
i wish to telnet to a unix server, execute some commands and get the
results onto excel range. I have tried opening telnet application
using sendkeys but its not what i want. Any other ways or some Active
X controls that might let me do this task?
thanks


K Dales[_2_]

telnet without sendkeys
 
You can possibly use the Windows API to control Telnet - there are commands
to activate windows and to access the menus, etc. but it would take quite a
bit of advanced programming to get it to work. For more information you can
refer here
http://msdn.microsoft.com/library/de...y_category.asp

" wrote:

hi
i wish to telnet to a unix server, execute some commands and get the
results onto excel range. I have tried opening telnet application using
sendkeys but its not what i want. Any other ways or some Active X
controls that might let me do this task?
thanks




All times are GMT +1. The time now is 09:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com