My aim is really simple: I want to list hundreds of ebooks on my site. Just words that you click on and it opens the pdf in a new tab. My issue lays in that doing this manually would take days for a single folder. In powershell, I've managed to find a way to list all contents in a directory and save them to a file.
cd "directory\to\file"
ls $search_dir > text.txt
This prints the contents and saves them in a text file. What I want to do is wrap text around it. In HTML it's obvious you need to make your tags like
<p><a href="path/to/file/file.pdf" target="_blank" class="downloadlink2">file</a></p>
This is how I want my printed list to look. So how do I get the list of contents to get wrapped around like this (and also printed again between the tags without the ".pdf" extention)?