Hoo to execute scripts when awaking from suspend-to-RAM?


Go Back   Computer Help Articles > Windows XP Customize
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006, 06:32 AM
Michael Moser
 
Posts: n/a
Default Hoo to execute scripts when awaking from suspend-to-RAM?

Is there a way (filename / specific directory location / registry entry
/ whatever...) where one can hook in some batchfiles that one wants to
be executed whenever the system awakens from a suspend (to RAM)? My
laptop obviously doesn't get it when I suspend, disconnect and then
connect and awake it attached to a different network.

It always retains its old IP address which then of course causes all
connection attempts to fail before I issue yet another ipconfig /release
& ipconfig /renew. This tends to get a bit tedious so I would like to
automatize this...

Beats me, why on some networks it recognizes a network change
IMMEDIATELY while on some others NEVER...

Michael

Reply With Quote
  #2  
Old 01-05-2006, 06:32 AM
Phillips
 
Posts: n/a
Default Re: Hoo to execute scripts when awaking from suspend-to-RAM?

In Network Connection Properties check if you have Reconnect on Disconnect
(or such) enabled; it should automatically renew your IP. Check all other
network settings as well - ex. Let Windows Automatically Mange Connection or
so.
Michael
"Michael Moser" <michael-nospam.moser@nospam.freesurf.ch> wrote in message
news:%23MEziPx3FHA.4076@TK2MSFTNGP15.phx.gbl...
> Is there a way (filename / specific directory location / registry entry /
> whatever...) where one can hook in some batchfiles that one wants to be
> executed whenever the system awakens from a suspend (to RAM)? My laptop
> obviously doesn't get it when I suspend, disconnect and then connect and
> awake it attached to a different network.
>
> It always retains its old IP address which then of course causes all
> connection attempts to fail before I issue yet another ipconfig /release &
> ipconfig /renew. This tends to get a bit tedious so I would like to
> automatize this...
>
> Beats me, why on some networks it recognizes a network change IMMEDIATELY
> while on some others NEVER...
>
> Michael
>



Reply With Quote
  #3  
Old 01-05-2006, 06:32 AM
Michael Moser
 
Posts: n/a
Default Re: Hoo to execute scripts when awaking from suspend-to-RAM?

Hi Philips,
thanks for your response. I walked the entire Properties tree (i.e. all
options and dialogs) of that connection but couldn't find any such
option (not even one whose name sounded vaguely similar). I also checked
the driver settings, but no such option either. Might this be something
driver specific or else could you please point me to where that option
sits (or what its exact name is)?

Thanks,
Michael

"Phillips" <afn18721@afn.org> wrote in message
news:eNNqBG13FHA.472@TK2MSFTNGP15.phx.gbl...
> In Network Connection Properties check if you have Reconnect on
> Disconnect (or such) enabled; it should automatically renew your IP.
> Check all other network settings as well - ex. Let Windows
> Automatically Mange Connection or so.


Reply With Quote
  #4  
Old 01-05-2006, 06:32 AM
Phillips
 
Posts: n/a
Default Re: Hoo to execute scripts when awaking from suspend-to-RAM?

Depends on your connection type, your ISP and/or LAN. The steps would be
different for each; ex. if you are on a DHCP network, your IP will be
renewed automatically - else, you might configure a "static IP address."
Check this one:
http://www.windowsnetworking.com/art.../w2ktcpip.html
For ipconfig switches, check here:
http://www.microsoft.com/resources/d.../ipconfig.mspx
Michael

"Michael Moser" <michael-nospam.moser@nospam.freesurf.ch> wrote in message
news:ehxwm443FHA.2432@TK2MSFTNGP10.phx.gbl...
> Hi Philips,
> thanks for your response. I walked the entire Properties tree (i.e. all
> options and dialogs) of that connection but couldn't find any such option
> (not even one whose name sounded vaguely similar). I also checked the
> driver settings, but no such option either. Might this be something driver
> specific or else could you please point me to where that option sits (or
> what its exact name is)?
>
> Thanks,
> Michael
>
> "Phillips" <afn18721@afn.org> wrote in message
> news:eNNqBG13FHA.472@TK2MSFTNGP15.phx.gbl...
>> In Network Connection Properties check if you have Reconnect on
>> Disconnect (or such) enabled; it should automatically renew your IP.
>> Check all other network settings as well - ex. Let Windows Automatically
>> Mange Connection or so.

>



Reply With Quote
  #5  
Old 01-05-2006, 06:33 AM
Michael Moser
 
Posts: n/a
Default Re: Hoo to execute scripts when awaking from suspend-to-RAM?

"Phillips" <afn18721@afn.org> wrote in message
news:eYt1iY63FHA.1416@TK2MSFTNGP09.phx.gbl...
> ...
> ... if you are on a DHCP network, your IP will be renewed
> automatically ...


Yeah - that's what one would think! But I *am* on a DHCP enabled network
both, at work AND at home (my router+WLAN basestation combination at
home also does DHCP), but this automatic renewal only works in one
direction.

When I attach to our company network the network change is always
immediately recognized and I get a new IP-address. However, if I detach
from that and later re-attach at home, the computer does not realize
this network change and continues to use the company IP settings until I
manually trigger a renewal.

That's why I considered to fix the problem with some wakeup-script...

Michael

Reply With Quote
  #6  
Old 01-05-2006, 06:33 AM
Phillips
 
Posts: n/a
Default Re: Hoo to execute scripts when awaking from suspend-to-RAM?

Why don't you have two different connections, or try the staticIP for one of
them.
Michael
"Michael Moser" <michael-nospam.moser@nospam.freesurf.ch> wrote in message
news:OOlT1m$3FHA.2424@TK2MSFTNGP10.phx.gbl...
> "Phillips" <afn18721@afn.org> wrote in message
> news:eYt1iY63FHA.1416@TK2MSFTNGP09.phx.gbl...
>> ...
>> ... if you are on a DHCP network, your IP will be renewed automatically
>> ...

>
> Yeah - that's what one would think! But I *am* on a DHCP enabled network
> both, at work AND at home (my router+WLAN basestation combination at home
> also does DHCP), but this automatic renewal only works in one direction.
>
> When I attach to our company network the network change is always
> immediately recognized and I get a new IP-address. However, if I detach
> from that and later re-attach at home, the computer does not realize this
> network change and continues to use the company IP settings until I
> manually trigger a renewal.
>
> That's why I considered to fix the problem with some wakeup-script...
>
> Michael
>



Reply With Quote
  #7  
Old 01-05-2006, 06:33 AM
Michael Moser
 
Posts: n/a
Default Re: How to execute scripts when awaking from suspend-to-RAM?

I tried with an "Alternate Configuration" that lists the static IP
address I use at home, but still, the system does not get it when I am
detachaed/re-attached.

Which brings me back to my original question: is there a way, to start a
script when awakening from Suspend-to-RAM?

Michael

Reply With Quote
  #8  
Old 01-05-2006, 06:33 AM
Phillips
 
Posts: n/a
Default Re: How to execute scripts when awaking from suspend-to-RAM?

Cannot think of any event at wake up from stand by that you can use to start
executing the script - albeit there should be some.
Michael

"Michael Moser" <michael-nospam.moser@nospam.freesurf.ch> wrote in message
news:ei2S0364FHA.1148@tk2msftngp13.phx.gbl...
>I tried with an "Alternate Configuration" that lists the static IP address
>I use at home, but still, the system does not get it when I am
>detachaed/re-attached.
>
> Which brings me back to my original question: is there a way, to start a
> script when awakening from Suspend-to-RAM?
>
> Michael
>



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
to execute win32 applications on 'Windows PE ' hemantbsutar@gmail.com Windows XP Setup Deployment 2 01-05-2006 06:14 AM
Execute command line with params when using the file:/// protocol? Andrew Fiddian-Green Windows XP Network Web 0 01-05-2006 04:08 AM


All times are GMT. The time now is 11:22 PM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

Hoo to execute scripts when awaking from suspend-to-RAM?