Question Renaming files' extension in subdirectories

Izdihar

Honorable
Sep 18, 2015
1
0
10,510
0
Hello all,
My pc was attacked by a trojan, i arrived to stop it & get rid of it, but now all my files's extensions are modified & this malware added
.enfp extension to them.

I need to know how to Rename files' extension in sub-directories, I used the command ren in command prompt for files in a folder, like this:
rename *.enfp *.

But i have a lot of subfolders with files renamed, how can i do it with less time?
 

hang-the-9

Titan
Moderator
Yes there is a good chance the files are actually encrypted and won't open even when you rename them.

For renaming things, it's impossible to make it go faster sine you need to know what the file should be, and it's not likely they are all the same file type.

The correct way to handle this is to do a restore from a backup, but it does not seem to have been done, so the thing here is to learn to do backups for next time if you can manage to get your files back and functional.
 

AlHuneke

Notable
Jul 7, 2020
501
62
890
74
I also suspect the files have been encrypted by ransomware and since the program didn't finish and give you the contact for decrypting, you are SOL. I hope I'm wrong.

To answer your original question, search on the internet for rename all files in tree. Lots of information there.
 
Thread starter Similar threads Forum Replies Date
TypicalOven Laptop Tech Support 6
C Laptop Tech Support 0
Swarit123 Laptop Tech Support 2
J Laptop Tech Support 3
kabman Laptop Tech Support 3
ajw4321 Laptop Tech Support 0
ssduarte92 Laptop Tech Support 2
D Laptop Tech Support 0
S Laptop Tech Support 5
B Laptop Tech Support 11
U Laptop Tech Support 6
A Laptop Tech Support 3
T Laptop Tech Support 1
J Laptop Tech Support 1
B Laptop Tech Support 3
L Laptop Tech Support 3
R Laptop Tech Support 0
R Laptop Tech Support 0
J Laptop Tech Support 1
viveknayyar007 Laptop Tech Support 0

ASK THE COMMUNITY