05-06-2008, 01:07 PM
I use the following code to send and then run functions or macros on another PC on our LAN.
I issue these commands to groups of computers. But if 1 or more of the computers is turned off or disconnected, then there is a 25 second timout delay after the "NetSendMacro" command and then the "net" command, 45 seconds in total. If 7 computers are turned off, I must wait for 5 minutes for the macro to complete.
How can I shorten this timeout period, and how can I deactivate it completely? (assuming that is not a dumb thing to do)
Run_function_on_other_PCer
foreach c Valgte_PCer
r=(NetSendMacro(c Passord Valgt_funksjon))
if(r) mes "Kan ikke sende function til denne PC" c
r=(net(c Passord Valgt_funksjon))
if(r) mes "Kan ikke kjøre function på denne PC" c
goto SluttI issue these commands to groups of computers. But if 1 or more of the computers is turned off or disconnected, then there is a 25 second timout delay after the "NetSendMacro" command and then the "net" command, 45 seconds in total. If 7 computers are turned off, I must wait for 5 minutes for the macro to complete.
How can I shorten this timeout period, and how can I deactivate it completely? (assuming that is not a dumb thing to do)
