command for bat file to determine if work/home-group computer online?

J

Jason

In a batch file, how can I determine if one of the other machines on our
local LAN is reachable on the network?

Thanks,
Jason
 
N

Nil

In a batch file, how can I determine if one of the other machines
on our local LAN is reachable on the network?

NET VIEW \\OTHER_MACHINE_NAME

The command will return errorlevel 0 if successful. Anything else
indicates failure for various reasons.
 
Top