Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

896.Text generator -- How to generate an html page that include download links of specified files?

User: editor -- 2011-12-15          << 895  897 >>
Hits: 283
Type: Text generator   
Search all Text generator examples
Description:
How to generate an html page that include download links of all files in a folder?
Input Sample:
There are following files in a folder:
a1.pdf
a2.pdf
a3.doc
a4.doc
...
Output Sample:
Create an download.html file including following code:
<a href="a1.pdf">Download a1.pdf</a>
<a href="a2.pdf">Download a2.pdf</a>
<a href="a3.doc">Download a3.doc</a>
<a href="a4.doc">Download a4.doc</a>
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Batch Runner" menu
2. drag all the files, such as a1.pdf, a2.pdf, a3.pdf,...   from windows file browser to "Batch Runner" windows.
3. click "export list", and set "File List Format" to:

4. click "Next", and select an output file such as a.txt, done.
5. you can copy code in a.txt and paste to download.html

Similar Examples:
How to extract all records that contains specified field values? (57%)
How to search and replace text 'ReplaceMe' only in specified lines? (56%)
How to extract all distinct parent folder names from a list of files? (53%)
How to remove nested html tags that only enclose blank tags or &nbsp;? (53%)
How to extract the last non-blank line from multiple text files? (52%)
How to create a text file including filenames in a folder with specified format? (52%)
How to extract all lines with specified date range from text file? (52%)
How to extract multiple lines in specified order from many text files? (52%)

Check Demo of Text generator
Keywords:
pdf  include  export  href  a href  links  code  download  down  copy  copy paste  export list of files  copy files from list  copy files from a list  download all html  download html  links from html file  html download