2 min read
Batch Script to Bust Viruses and Recover folders

Found a lot of people becoming victims of a stupid (but kind!) virus which makes all your folders hidden and replaces them with shorcuts of the same name.
There’s a simple way to recover your data using DOS commands and i ended up doing it too many times for too many people .
So i decided to write a small batch script to save myself the trouble

del *.lnk
FOR /F %%G IN (‘DIR /A:h /b’) DO attrib %%G -s -h Just paste the above two lines in a text file and save the file as Anti_Vir.bat
Then copy this file to the drive affected by the virus (in the root directory) and double click to run it.
Presto! Your folders should be back and the shortcuts gone.
P.S. This is only a temporary solution . You should find a way to remove the virus in the first place.