Re: Login Scripts



Howdy Dan!

DanielWalters6 wrote:
ipconfig /renew
ipconfig /all
*******
use x: \\COMPUTERNAME\SHARENAME /persistent:no

I would like to replace the *'s with a DELAY of ten seconds. Does anyone know how to do this?

I've got two suggestions for you:

- You could download the Windows Server 2003 Resource Kit which provides a program called "sleep". You can use it with "sleep 10" and let your clients sleep ten seconds before going on working on the batch. Bad thing about this: you'd need to deploy sleep.exe on all clients first.

- You could just do something else while waiting. For example pinging a server or computer on the network: "ping <ipaddress> -n 10" would let the client ping the computer with <ipaddress> ten times which takes about ten seconds as well.

cheers,

Florian
--
Nachwuschsadmin aus dem Süddeutschen/Germany.
eMail: Vorname [bei] frickelsoft [Punkt] net.
.



Relevant Pages

  • Re: newbie questions
    ... There is also a fundamental difference between delay and sleep: ... latter two refer to user-land operations (which will be implemented using kernel facilities). ... Mostly you delay execution in user space for a lengthy period of time, so implementing this as a busy-wait "delay" would be a waste of processor power and also of electric power as busy-waiting will keep the processor executing instructions while putting a process/thread into some queue might permit you to actually halt the processor because no other process/thread is ready for execution. ...
    (comp.os.linux.development.system)
  • Re: I NEED HELP
    ... order the delay, and if Julie hardly tops it too, the pool will ... sleep unlike the competent rock. ...
    (sci.crypt)
  • Re: Slow response when opening files from Win2K3 Server
    ... however with this installation, there is a 20-30 second delay when opening ... Check if the clients pointing to the correct internal DNS server, ...
    (microsoft.public.windows.server.active_directory)
  • Re: Thin Clients vs Win XP / PE
    ... experiencing on all our clients a keyboard lag to some degree or ... As for what I mean by delay it is pretty much all ... switch and their were no errors, no dropped packets and no collisions. ... Can you describe exactly what you mean by "keyboard delay"? ...
    (microsoft.public.windows.terminal_services)
  • Re: IHTMLDocument3 getElementById fails but not when I interpose a messagebox
    ... > replicate the delay in other ways and it didn't behave ... Sleep() does not allow window messages to be processed. ... m_MyView is the one that's derived from IDispEventImpl, ... cookie, so when you try to advise it a second time, it asserts. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)