Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 11-05-2003, 05:06 AM   #1 (permalink)
Newb Techie
 
Join Date: Sep 2003
Posts: 2
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   Reply With Quote
Reply

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



All times are GMT -5. The time now is 11:26 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0