[RESOLVED] VB6: How to check whether a PC of my workgroup are on or off?
In my Windows' workgroup I have several PC. I can access them via:
\\PC1
\\PC2\documents
\\PC3
etc
Now, how can I check if they're on or off?
I came up with this:
Code:
On Error GoTo IsOff
Open "\\PC2\test.txt" For Output As 5:close
Msgbox "It's ON"
exit sub
IsOff:
MsgBox "It's OFF"
but every time I do that, the program freezes like 5 seconds if PC is off. Can I reduce that time of waiting or try something else?
Re: VB6: How to check whether a PC of my workgroup are on or off?
Re: VB6: How to check whether a PC of my workgroup are on or off?
Quote:
Originally Posted by
RhinoBull
Thanks, RinoBull! :)
Worked out perfectly
Re: [RESOLVED] VB6: How to check whether a PC of my workgroup are on or off?