Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 11-05-2003, 06:06 AM   #1 (permalink)
 
Newb Techie

Join Date: Sep 2003

Posts: 2

gary1

Default Closing Applications

I am using the following piece of code in a batch file to close running applications

If Exist Running.txt Del Running.txt
Ps > Running.txt

If Exist CloseTheseRunning.txt Del CloseTheseRunning.txt
Grep -f CloseTheseApplications.txt Running.txt > CloseTheseRunning.txt

If Exist CloseTheseProcesses.txt Del CloseTheseProcesses.txt
for /F "tokens=1" %%k in (CloseTheseRunning.txt) do Echo %%k >> CloseTheseProcesses.txt
for /F "tokens=1" %%k in (CloseTheseProcesses.txt) do If Not %%k == Grand Kill %%k

This works fine on Win2000 and WinXP machines. I need a similar piece of code to close running apps in Win98.

PLEASE CAN SOMEBODY HELP.
gary1 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On