cloudy cloudy

Author Topic: save and shutdown WD  (Read 704 times)

0 Members and 1 Guest are viewing this topic.

Offline Weather Dog

  • Posts: 127
  • Peet Bros. Ultimeter 2100 Pro
  • Connecticut, USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
    • New Milford Ct Weather
save and shutdown WD
« on: March 10, 2018, 03:13:18 PM »
Hi Brian,

Is there any way to do this or add to WD a way save and close WD?  We've had so many storms and power outages and even though I have WD on a laptop as the battery runs out and windows closes WD never closes gracefully.  I just spent hours rebuilding log files to get WD back in shape.  It would be great if on low power I could run a task running WeatherDisplay.exe with a switch to save the settings and close the prog.

b. 56, win 7

Thanks!
Roger

Offline g8dhe

  • Posts: 23
  • Worthing, West Sussex, UK.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 64.0.3282.186
    • G8DHE's weather station
Re: save and shutdown WD
« Reply #1 on: March 10, 2018, 03:27:46 PM »
The Windows 7 Task schedule has the option to "Stop if on battery power" under the Conditions tab.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,670
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 65.0.3325.146
Re: save and shutdown WD
« Reply #2 on: March 10, 2018, 03:52:44 PM »
It's a good idea  :)

The Windows 7 Task schedule has the option to "Stop if on battery power" under the Conditions tab.
AFAIK that just kills the task, it's not necessarily equivalent to a graceful "save and exit".

I use a program created with a windows automation software to automatically "save and exit" WD but it's very PC dependent so I won't share it. You could do the same with AutoIt which is free.

Offline Weather Dog

  • Posts: 127
  • Peet Bros. Ultimeter 2100 Pro
  • Connecticut, USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
    • New Milford Ct Weather
Re: save and shutdown WD
« Reply #3 on: March 11, 2018, 11:32:02 AM »
Thanks, Geoff but I'm not sure that would do what I want, plus I need WD to stay running as long as possible on battery in case the power returns.
Niko, you gave me a couple of good ideas.  I did try Googling software for that between power outages but must have chosen poor keywords!  Sometimes windows goes down and WD is OK but sometimes...what a mess!  This last outage not only did some log files get trashed but when  I did get the generator running the snow from yesterday on my heated rain gauge became the liquid from today. so I spent time approximating the liquid equivalent for each day to the snowfall.
Roger

Offline g8dhe

  • Posts: 23
  • Worthing, West Sussex, UK.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 64.0.3282.186
    • G8DHE's weather station
Re: save and shutdown WD
« Reply #4 on: March 11, 2018, 12:17:53 PM »
AFAIK that just kills the task, it's not necessarily equivalent to a graceful "save and exit".

seems to work OK for me, especially if under Settings "If the running task does not end when requested, force it to stop" is not ticked!

And of course you can set the task to run on power up as well, so it will start when Windows starts, and stop when the machine goes to Battery power.

Why not try it and see what it does for you, nothing to loose :-)

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,670
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 65.0.3325.146
Re: save and shutdown WD
« Reply #5 on: March 11, 2018, 02:12:44 PM »
nothing to loose :-)

Except your settings  :lol:  But we all have a backup - right  :wink:

 

cumulus