Oh my ... this works like a charm ...code:
#
# telnet xxx.xxx.28.49 10000
Trying...
Connected to xxx.xxx.28.49.
Escape character is '^]'.
REMCTL.KIX REMOTE CONTROL DEMONSTRATION SCRIPT
----------------------------------------------
TOP LEVEL MENU
--------------
1: Information Submenu
2: Run Abritrary command
q: Close Connection
Choose an Option: 1
INFORMATION MENU
----------------
1: Server identity
2: Server KixTart info
3: Client IP info
q: Return to previous menu
Choose an Option: 1
Server Identity Information
---------------------------
Remote Control Version : 1.00a
Server OS Type : Windows NT Workstation
Server OS Suite : 0
Server IP Address : xxx.xxx. 28. 49
Server Name : fr91016224.xx.xxx.xx
Server Current Time : 09:52:22
Hit <Enter> to return to menu:
INFORMATION MENU
----------------
1: Server identity
2: Server KixTart info
3: Client IP info
q: Return to previous menu
Choose an Option: 2
Server KixTart Information
--------------------------
KixTart Version : 4.00
WSLIB Version : 1.00a
WSLIB Last Updated : 27 September 2001
WSLIB Description : wsctlyst.kix: Wrapper for Catalyst Winsock Control
WSLIB Maintainer : Richard Howarth
WSLIB Maintainer Email : rhowarth@sgb.co.uk
WSLIB Maintainer Phone : Not Supplied
Hit <Enter> to return to menu:
INFORMATION MENU
----------------
1: Server identity
2: Server KixTart info
3: Client IP info
q: Return to previous menu
Choose an Option: 3
Client IP Information
---------------------
Your IP Address : xxx.xxx.28.164
Your IP Port : -16045
Your Name (Unreliable) : dn1cro.xx.xxxx.xx
Hit <Enter> to return to menu:
INFORMATION MENU
----------------
1: Server identity
2: Server KixTart info
3: Client IP info
q: Return to previous menu
Choose an Option: q
TOP LEVEL MENU
--------------
1: Information Submenu
2: Run Abritrary command
q: Close Connection
Choose an Option: 2
Enter command to execute and hit return
The server process will hang if user input is required.
Only output that can be captured with DOS redirection
using '>' will be displayed.
Enter blank command or 'q' to return to menu
> dir
Command execution started at 09:52:32
Command execution completed at 09:52:32
Command error status: 0
----- START OF OUTPUT FROM COMMAND -----
Volume in drive G is DEVELOPMENT
Volume Serial Number is 1F24-1DF4
Directory of G:\kixnet
01/09/27 08:52a <DIR> .
01/09/27 08:52a <DIR> ..
01/09/27 08:53a 8,275 wsctlyst.kix
01/09/27 09:47a 9,575 remctl.kix
01/09/27 08:56a 5,778,432 sw35fe32.exe
01/09/10 10:14a 196,608 kix32.exe
6 File(s) 5,992,890 bytes
269,844,480 bytes free
------ END OF OUTPUT FROM COMMAND ------
>
TOP LEVEL MENU
--------------
1: Information Submenu
2: Run Abritrary command
q: Close Connection
Choose an Option: q
**Disconnecting at your request**
Connection closed by foreign host.
I must say - this is very well done. Your scripts are very professionally written and they work a charm ... some notes from over here :
1) I tried installing SocketWrench on Windows 2000 pro, but the install hung on the last bit - registering the components ... One can (should) be able to manually register the control with regsvr32.exe though ... I'll try it later (I moved over to my NT box ) ...
2) In case anyone didn't notice (I didn't right off the bat) the remctl.kix script requires KiXtart 2001 RC3 (your use of the KBHIT() function) ... you just demonstrated how usefull this function will become ...
The mind boggles ...
-Shawn