Hi,
I have a list of file names in a text file-FilesList.txt, which contains only one column with file names. For example,
FilesList.txt
----------------
Fileone.txt
File Two.pdf
The Third File.xls
---------------
FilesList.txt is stored in the same location that contains the files listed in the file. It is typically created using dir /b > FilesList.txt command.
I am looking for a script (DOS Batch File), which would read the file names from FilesList.txt file and create these files at any selected location. That would mean that I would only have the files with similar names created elsewhere, but these would be blank files.Any help on this would be highly appreciated.
@echo off & setLocal EnableDELAYedeXpansion set dest=d:\some\where
for /f "tokens=* delims= " %%a in (FilesList.txt) do (
type nul > "!dest!\%%a"
)
=====================================
Helping others achieve escape felicityM2
Thanks M2,
It did work for me :)
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |