quitting one program and starting another with one click

J

Jeff

On a Windows 2000 SP4 Workstation, can a batch file be
written and run on the local workstation to shut down an
application? I use a caller ID program and would like to
have it stop with one shortcut and then start my online
service. I can get it to restart the caller ID program
after the online service quits, but not the other way

Thank you,

Jeff
 
D

Dave Patrick

You can use kill.exe from the resource kit or pskill from sysinternals
http://www.sysinternals.com/ntw2k/freeware/pskill.shtml

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect.


:
| On a Windows 2000 SP4 Workstation, can a batch file be
| written and run on the local workstation to shut down an
| application? I use a caller ID program and would like to
| have it stop with one shortcut and then start my online
| service. I can get it to restart the caller ID program
| after the online service quits, but not the other way
|
| Thank you,
|
| Jeff
 
J

Jeff

Thanks for the reply. I tried pskill but the program does
not have a process ID so it didn't work on that program.
Also in the task manager under processes the program I
want to kill, the name of the program is indented one
character from the left (I don't know it that makes a
difference) It did work on one that has the process ID
 
D

Dave Patrick

Sounds like a 16 bit app that would run in the Win16 subsystem (aka, NTVDM
(NT Virtual Dos Machine),
WOW (Windows on Windows) subsystem), hence you would probably need to kill
the host wowexec.exe

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect.


:
| Thanks for the reply. I tried pskill but the program does
| not have a process ID so it didn't work on that program.
| Also in the task manager under processes the program I
| want to kill, the name of the program is indented one
| character from the left (I don't know it that makes a
| difference) It did work on one that has the process ID
 
J

Jeff

The program WOWEXEC.EXE won't close with pskill either.
wowexec.exe also has a space in front of the listing in
task manager / processes.
 
D

Dave Patrick

ntvdm.exe

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect.


:
| The program WOWEXEC.EXE won't close with pskill either.
| wowexec.exe also has a space in front of the listing in
| task manager / processes.
 
J

Jeff

Dave
Thank you so much.
This is just what I wanted it to do.
It worked great for me!!!
 
D

Dave Patrick

Glad to hear it. Thanks for the feedback.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect.


:
| Dave
| Thank you so much.
| This is just what I wanted it to do.
| It worked great for me!!!
 

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