[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 904
  • Last Modified:

APC Powerchute

I have just bought a newly conditioned smartups 1500va for my pc and have installed the powerchute business edition. what i am not sure how to do is get it to save and close all db applications and then shutdown in the event of power failure. the shutdown option is in the software but not sure how or if i have to write some sort of script to close all applications in a safe way.

I work on data at home and the wife occasionaly trips the breakers hence the purchase of the ups.
assistance would be appreciated.
regards in advance.
0
PeterBaileyUk
Asked:
PeterBaileyUk
  • 4
  • 2
  • 2
1 Solution
 
davetripp33Commented:
I believe you can tell powerchute to kick off a script like you are talking about, but I don't think you can tell it which applications to shut down in which order within the program itself.
0
 
PeterBaileyUkAuthor Commented:
how do i write a script that powerchute will use? I saw the section you mean in powerchute now it gives option to run a file. not sure how to write a script to shutdown access
0
 
PeterBaileyUkAuthor Commented:
the ups has a command file directory, i have set it up to activate the file on power off, so all i need is the text to save and close access

@echo off
rem
rem   Maximize for best viewing
rem   This command file provides examples of proper command file syntax
rem
rem   Command Files run by PowerChute Business Edition must be placed in this directory.
rem
rem   Use the full path name of executable programs and external command files.
rem
rem   The @START command must be used to run executable programs (see example below).
rem   For the @START command, path names that include spaces must be enclosed in quotes; 
rem   arguments for the executable must be outside the quotes.  A double quote must
rem   precede the quoted path name.  For example, to execute a command file in 
rem   c:\Program Files\APC\PowerChute Business Edition\agent\cmdfiles called myShut.exe,
rem   the following line should be entered in the command file:
rem
rem   @START "" "c:\Program Files\APC\PowerChute Business Edition\agent\cmdfiles\myShut.exe"
rem
@echo on

Open in new window

0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
PeterBaileyUkAuthor Commented:
is their a windows scripting section at EE? maybe i should ask a moderator to put the question elsewhere as it appears windows scripting may be the answer.

0
 
davetripp33Commented:
I believe there is, but I a new to EE as well so I am not sure. Sorry. Best of luck.
0
 
lesouefCommented:
win scripting is there http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/
and
the only windows command which closes apps is shutdown.exe. only services can be stopped via commands.
as access is not a service, you can't really stop it unless you use the powerchute utility to shut your machine down. is there a mode where access saves data upon exit automatically?
0
 
PeterBaileyUkAuthor Commented:
thats a good question about an access mode to save on exit, I am not sure i looked in options but could only find compact and close.
0
 
lesouefCommented:
from what I remember when I gave up access (access95...), closing automatically saves any pending data, except non validated fields maybe. anyway, easy to test, do a new record, fill 5 fields for instance, leave the cursor in the 5th, shutdown your machine, and re-open the db and see what's kept.
as for the shutdown syntax, this depends on your OS as there are several versions. check yours by using shutdown /? or shutdown -h.
this should work with most versions
shutdown -i (shows the UI).
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now