Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
deiutza20 pe Simpatie.ro
Femeie
21 ani
Bacau
cauta Barbat
21 - 44 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [WINDOWS] Create a Text File Next to Every File in a Folder Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
Source:

So I lost about 200 files due to a ransom-ware infection and now they are all encrypted.
But instead of having the encrypted files with all the names, or having a text file containing all the names, I would like to have an empty text file instead of each of the encrypted ones.

The encrypted files have the extension .redl added by the virus.

To create a text file with each of their names in bulk, I need the following:

1. Open Notepad

2. Paste the following in it:

@echo off
for %%f in (*.redl) do echo %%f > "%%~f.txt"


3. Click on File - Save As

4. Save it with .bat extension in the folder where I have the encrypted files

5. Run it

6. It creates the text files and adds their name inside.
eg.
     File1.docx.redl
will have a text file
     File1.docx.redl.txt
that will contain the text:
     File1.docx.redl.txt


To also add some text inside, you need to change the above .bat file content to and replace TEXT with the desired text:

@echo off
for %%f in (*.*) do if /i "%%~xf" neq ".txt" echo TEXT > %%f.txt


_______________________________________


pus acum 4 ani
   
Pagini: 1  

Mergi la