Cable is a small wrapper written taking portions of code from GenMac utilities samples and from XWP. It has been written to allow automatic start of XWLan when the lan cable is not connected to your computer. Since OS/2 drivers cannot provide such info, it can work only if the GenMac driver is used for your LAN card (check GenMac for supported chipsets).
Use is quite simple:
CABLE DriverName|DeviceNumber [ExeName]
where DeviceNumber is the number of your LAN card in GenMac drivers (so it does not necessarily follow the same order used by OS/2, e.g. 0 is not always lan0).
On a notebook you can use
cable 0 C:\bin\xwlan\xcenter\wlanstat.exe
You can use - as exe name to show current card status: e.g.
cable 0
will show
[C:\]cable 0
Lan-Number : lan2
LinkSpeed : 100 [Mbit/s]
LinkStatus : CONNECTED
Add new comment