quitting one program and starting another with one click

  • Thread starter Thread starter Jeff
  • Start date Start date
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
 
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
 
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
 
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
 
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.
 
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.
 
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!!!
 
Back
Top