View Single Post
  #49  
Old July 21st 09, 10:22 PM posted to microsoft.public.windowsxp.network_web,microsoft.public.windowsxp.general
No_Name
external usenet poster
 
Posts: 119
Default Ethernet adapter interfering with Mouse

On Jul 21, 5:14*pm, "Pegasus [MVP]" wrote:

Here is the documentation I found for the call command:http://www.microsoft.com/resources/d...s/xp/all/prodd...

It says: "Calls one batch program from another without stopping the
parent batch program." *So it sounds like each "call" command will, in
effect, start a separate thread. *So the main program would launch the
subroutine with the "disable" parameter, and then it would immediately
launch the subroutine again with the "enable" parameter, and you'd be
trying to disable and enable the network adapter at the same time.
That's why I thought the ping command to simulate a sleep was
necessary, to force the enable function to be performed after the
disable function was finished. *But the behavior I am noticing seems
to indicate that a sleep isn't necessary, and that contradicts the
documentation.

*** Microsoft expressed it poorly. The writer meant to say
*** "without terminating the parent program". If you're familiar
*** with the term "subroutine" then set "call" = "subroutine
*** and all should be clear. It is actually possible to start a
*** program in a separate thread but this is a different topic
*** altogether and is not appropriate within the context of
*** the batch file I designed for you.


OK, I guess I was making this more complicated than it actually is.
Thanks for your help!
Ads