Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to shorten or deactivate timeout delay when using "net"
#1
I use the following code to send and then run functions or macros on another PC on our LAN.

Code:
Copy      Help
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 Slutt

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)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)