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:
Dulci-k pe Simpatie.ro
Femeie
22 ani
Giurgiu
cauta Barbat
22 - 45 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [BAT] Create a .TXT File for Every .EXTENSION File in a Folder Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
I needed to create a text file (.TXT) description file for multiple freeware software I downloaded from Nirsoft website and instead of creating each text file manually, I created a .BAT file with the following lines and put it in the folder containing all my Nirsoft downloaded apps.

The code below creates an empty text file named exactly as the .exe file it is attached to, for each .exe file in the current folder.


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


_______________________________________


pus acum 2 ani
   
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
Another version to add just a space and a new line into the new txt file, instead of the file's name:

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


_______________________________________


pus acum 1 an
   
Pagini: 1  

Mergi la