|viruses and the anti-virus software was disabled for security reasons|
You batch file, even if it would work correctly, is suitable for only one virus.
Btw.: When plugging a new hard drive to a computer, where you have already run that batch file, that tells me, that you haven't killed the virus with the batch file.
I strongly recommand, to use a professional antivirus software, to catch the virus and eliminate it persistently.
And I further recommend, to do this on all the workstations or servers you have.
You can't fight against viruses with a simple batch file.
This is reminiscent of Don Quichotte.
The original poster should always write the last response !!!
Let us know, if the problem is solved !!!