UPS shutdown program?

  • Thread starter Thread starter louise
  • Start date Start date
L

louise

Win XP Pro, SP2

I recently purchased a UPS which has very good specs and seems to
handle small brownouts quite well. However, the software that
came with it is bloated, laden with java applets, and I can't get
it to work. I will call the company if necessary but I'd rather
use some other software.

I see that Windows has a method for handling a UPS built into the
power options in control panel. However, it is necessary to run a
program ("when the alarm occurs run this program"), so that the
computer will be shut down in an orderly fashion.

Is there a program in Windows that I could use? Is there a batch
file I could create/use?

How does one handle this?

TIA

Louise
 
Win XP Pro, SP2

I recently purchased a UPS which has very good specs and seems to
handle small brownouts quite well. However, the software that
came with it is bloated, laden with java applets, and I can't get
it to work. I will call the company if necessary but I'd rather
use some other software.

I see that Windows has a method for handling a UPS built into the
power options in control panel. However, it is necessary to run a
program ("when the alarm occurs run this program"), so that the
computer will be shut down in an orderly fashion.

Is there a program in Windows that I could use? Is there a batch
file I could create/use?

How does one handle this?

TIA

Louise

You could just use a shortcut or batch file with the command,
"shutdown -s -t 0" without the quotes of course. If you open a command
prompt window and type "shutdown /?" you'll see what other options for the
shutdown command are available.
 
You could just use a shortcut or batch file with the command,
"shutdown -s -t 0" without the quotes of course. If you open a command
prompt window and type "shutdown /?" you'll see what other options for the
shutdown command are available.
WOW - a whole world just opened up - thanks!

Might I also use -f so that whatever programs are open on the
screen are properly shutdown first?

So, it would look like this: shutdown -f -s -t 0

Also, the only way I know to write a batch file is with a little
utility I found which doesn't always work. In dos days you could
use the "copy con" command - but how does one make a batch file
now?

Thanks again.

Louise
 
You can make your .bat file the same way - open a command window, navigate
to where you want the .bat file stored. do the copy con: and away you go.

Or, more easily, write it in Notepad, save at xxxx.bat instead of .txt. If
you're not displaying file extensions, Notepad will append the .txt, just
rename the file in Windows explorer

Val

~~~~~~~~~~~~
<<snip>>
Also, the only way I know to write a batch file is with a little
utility I found which doesn't always work. In dos days you could
use the "copy con" command - but how does one make a batch file
now?

Thanks again.

Louise
 
WOW - a whole world just opened up - thanks!

Might I also use -f so that whatever programs are open on the
screen are properly shutdown first?

So, it would look like this: shutdown -f -s -t 0

I think the -f switch is to force programs to close that would otherwise
hang and prevent the shutdown. I've never used that switch and have
always had my programs shutdown gracefully. I use desktop shortcuts for
restarting and shutting down - slightly less clicking than the huge
trouble of going to Start menu. ;)
Also, the only way I know to write a batch file is with a little
utility I found which doesn't always work. In dos days you could
use the "copy con" command - but how does one make a batch file
now?

You can just use notepad or any text editor, then save the document as
something like "shutdown.bat" and either put it in your path or make sure
the UPS doohickey (never bothered to use the autoshutdown on mine) knows
where the batch file is located.
 
louise said:
WOW - a whole world just opened up - thanks!

Might I also use -f so that whatever programs are open on the
screen are properly shutdown first?

So, it would look like this: shutdown -f -s -t 0

Also, the only way I know to write a batch file is with a little
utility I found which doesn't always work. In dos days you could
use the "copy con" command - but how does one make a batch file
now?
Use notepad to create/edit the batch file, as someone said.
Also as someone said *don't* use -f.

I've been using the 'shutdown' command for years, but only
on Unix boxes. I too did not know that the command has
appeared in Windows. You used to have to get either the
Support Tools or the Resource Kit to get a shutdown command.

Cheers,

Cliff
 
Use notepad to create/edit the batch file, as someone said.
Also as someone said *don't* use -f.

I've been using the 'shutdown' command for years, but only
on Unix boxes. I too did not know that the command has
appeared in Windows. You used to have to get either the
Support Tools or the Resource Kit to get a shutdown command
Thanks everybody - it's working and now I know how to create a
batch file :-)

Louise
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top