Power Off or other alternatives

B

Brian (Groups)

I was looking at Power Off at
http://users.pandora.be/jbosman/applications.html .

It seems very capable, but I'm wondering if it could manage the
following scenario... I'd like to be able to shutdown (Win98SE)
according to the following sequence:

1. Terminate all running processes, except those needed to run a
(standalone) console app program in a DOS box.

2. Run this DOS box backup program from a batch file.

3. Power down computer.

I'm wondering if this would be possible with Power Off, or whether
there might be other freeware programs capable of doing this? Or could
some sort of process killer be incorporated, to selectively kill
running processes?

thanks
Brian
 
S

sablegs94

I'm probably way off Brian, but can't the Task Manager do the job or at
least get you there followed by a freeware utility to turn the system
off once the batch file/backup is completed? I don't do this myself, I
do backups manually. ( I'm also using Win98SE).

Sorry if I'm intruding :)
 
B

Brian (Groups)

Here is my info for you to evaluate.

Go into bios and then power management, look for the power down or shut
off option and select instant off instead of delay etc.

Shutdown Utilities
http://www.snapfiles.com/freeware/system/fwshutdown.html
http://www.freewarefiles.com/search.php
http://www.freewarefiles.com/cat_9_224_Shutdown-Tools.html

Thanks for the info, but the actual shutdown is not the difficulty
here. I can do that using:
C:\WINDOWS\RUNDLL32.EXE user,exitwindows

as the last line in the DOS batch file. It's closing down (most of) the
processes that's giving me the headache.

Brian
 
B

Brian (Groups)

It's quite true that this could all be done manually, including the use
of the task manager, but it's for somebody who is not so computer
savvy... hence the need for a batch file or similar.

Brian
 
B

Brian (Groups)

This looks like a nice app, which can be invoked from a batch file, and
offers numerous shutdown options. But my problem is selectively killing
running processes prior to backup. The final shutdown I can accomplish
easily from within the batch file.

I'm now actually considering a VBScript instead, which will operate
along the following lines:

1. Run PrcView http://www.teamcti.com/pview/prcview.htm in command line
mode to produce a tab-delimited text file of running processes like:
InCDsrv.exe 940
spoolsv.exe 1412
Explorer.EXE 1528
avgcc.exe 1712
SOUNDMAN.EXE 1720
taskswitch.exe 1736
....

2. Read this (temp) text file into a 2D array (process name, PID)

3. Loop through the array, using PrcView to kill off all PIDs, except
where the name is Explorer.EXE

4. Run the console backup app.

5. Shutdown by running:
C:\WINDOWS\RUNDLL32.EXE user,exitwindows

I'd rather be able to read and parse the text file, into a batch file,
as input, but can't find a method to do so.

Brian
 
C

charles

I'd rather be able to read and parse the text file, into a batch file,
as input, but can't find a method to do so.

Real easy to do with nt/2k/xp but I'm not clear on a way to do it with
98se.

I'd suggest asking over in alt.msdos.batch. They're pretty clever
about doing things like that.
 
B

Brian (Groups)

Thanks Charles. I'm pretty sure I can do it from a VBS script, and I'll
do some digging on some "clever" DOS solutions (my preferred method for
this particular problem).

Brian
 

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

Top