I want all filesnames of the files in a folder and subfolders in a csv-file. For that I wrote a batchscript which works just fine:
set "Folder=N:\myFolder\mySubFolder\mySubSubFolder"
dir /b "%Folder%">"Z:\worx\filenames.csv"
The content of filenames.csv is like:
N:\myFolder\file1.txt
N:\myFolder\mySubFolder\file2.txt
N:\myFolder\mySubFolder\mySubSubFolder\file3.txt
Now I want to concatenate each line in the csv-file. The result has to look like that:
The File:N:\myFolder\file1.txt#exists
The File:N:\myFolder\mySubFolder\file2.txt#exists
The File:N:\myFolder\mySubFolder\mySubSubFolder\file3.txt#exists
Does anybody know a simple way to do that?
I thought about another batchfile which just extends each line of the csv-file, but I am looking for an less complicate way.