Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi I am trying to write a batch file for removing a virus. I need it to work on all op. sys. I have used taskkill /im to kill the processes but this does not work on win98.
Is there a way to kill the process on win98 with a .bat file. I do not know any other coding language. Your help would be appreciated. ~ Thanks

Thanks ghostdog, but this is not for me, my pc is as clean as a whistle. I help out on a site where we eradicate virus's from pc's and I am writing a bat. file to remove 180search variant, so I need to use the bat file to do the job, not bringing in another source. So I have the bat program to a point of working on XP and so on, but am stuck beause of the issue with taskill and win98.
I do apologize if I did not make myself clear in the first post.

hi
I assume what you mean by "not introducing another source" to be you do not want to download kill.exe into the PC that has the virus??
Then, can you store the kill.exe and your batch file on a floppy , then bring it to the PC that needs cleaning, and run your batch from the floppy ??

I do not get to go to the pc that needs cleaning. It is done over the net from the site I help at here is a link http://forums.thetechguys.com/showthread.php?t=28587 to one of the pcs I am working on now...if you check the link you will see how it is done. The program must kill the process that I tell it to kill which is why I need a code for a bat file. It could even be another code that could be called when needed to kill the processes running. I wish I could show you what I have at this point, it may make things a lot more clear. Here is just a couple of line from my program to help you see what I mean.
::KILLING TASKS
taskkill /im 180.exe /f
taskkill /im 180sainstallernusac.exe /f:: DELETING REGISTERY KEYS:
echo.
echo Creating Registry file...
echo REGEDIT4 >%USERPROFILE%\Remove.Reg
echo.
echo Removing invection keys.....
echo [-HKEY_CLASSES_ROOT\180sainstaller.180sainstaller] >>%USERPROFILE%\Remove.Reg
echo [-HKEY_CLASSES_ROOT\180sainstaller.180sainstaller.1] >>%USERPROFILE%\Remove.Reg::REMOVING FILES
IF EXIST C:\180.exe GOTO 2
:1
echo C:\180.exe NOT FOUND
GOTO NEXT
:2
echo deleting C:\180.exe
del C:\180.exe

hi dwight.. well i am afraid i can't be of much help .... from seeing your batch...to me its as easy as substituting taskkill for kill...
....
::KILLING TASKS
kill <whatever options> 180.exe
kill <whatever options> 180sainstallernusac.exe
.....maybe you want to post your qns to usenet such as alt.msdos.batch.nt ?

If I was you I would package the batch file and kill.exe and then have the batch file copy kill.exe to their HDD then delete kill.exe when
the batch file is done running.Fed up with Windows? Try Ubuntu Linux

Thanks guys but unfortunatly niether way works, the only solution I have come up with is to boot to safe mode then delete the reg kys attached to the particular file then delete the file itself.
Taskill, Kill... none of them work in win98 it is not recognized.

![]() |
batch file to automate hy...
|
.dat file
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |