Computers |
|
| | #1 (permalink) |
| Newb Techie Join Date: Sep 2003
Posts: 2
| 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. |
| | |