Creating a batch/vbs file to append start and end of paragraph
Closed
BrianGreen
Posts
1005
Registration date
Saturday 17 January 2015
Status
Contributor
Last seen
30 September 2021
-
20 Nov 2016 à 09:47
yg_be Posts 23437 Registration date Sunday 8 June 2008 Status Contributor Last seen 6 June 2025 - 2 Jan 2017 à 10:12
yg_be Posts 23437 Registration date Sunday 8 June 2008 Status Contributor Last seen 6 June 2025 - 2 Jan 2017 à 10:12
Related:
- Creating a batch/vbs file to append start and end of paragraph
- Dvi file - Guide
- How to open .ps file - Guide
- Windows 10 iso file download 64-bit - Download - Windows
- Upload file to mediafire - Guide
- Safari cannot open the page because it is a local file - Guide
1 response
yg_be
Posts
23437
Registration date
Sunday 8 June 2008
Status
Contributor
Last seen
6 June 2025
5
2 Jan 2017 à 10:12
2 Jan 2017 à 10:12
Hi, I am proposing this vbs:
Dim textline, fso, f1, F2, aline
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.OpenTextFile("C:\data\temp\ccm\input.txt", 1, True)
Set F2 = fso.CreateTextFile("C:\data\temp\ccm\output.txt")
While f1.AtEndOfStream <> True
aline = f1.Readline 'read in the row
F2.WriteLine "<p>" & aline & "</p>"
F2.WriteLine ""
Wend
f1.Close 'close the input file
F2.Close