However, trying to connect to IPC$ will also incur the 30-second-timeout-penalty. However, it would be the clean approach. Pseudo code:
code:
IF NOT PING
; try sending a Wake-On-LAN command
; PING again until computer resonds or timeout is reached
IF NOT timeout-is-reached
IF CONNECT-TO-IPC
; do whatever you need to do
ENDIF
ENDIF
ENDIF

This approach has been implemented in the server script of the KiXtart Systems Management Server.
_________________________
There are two types of vessels, submarines and targets.