I needed to write a string to the start of each line in a text file. I used Powershell to achieve this. You can see the code here: http://pastebin.com/vg2SDrqX
Prepend data to each line in text file
Leave a reply
I needed to write a string to the start of each line in a text file. I used Powershell to achieve this. You can see the code here: http://pastebin.com/vg2SDrqX
I needed to create a quick and dirty HTML file that had 2 columns. 1 column was the website path to the image, the 2nd column was the image itself. This would need to be created dynamically.
I have powershell code on pastebin.com here: http://pastebin.com/YXZqg1yb.
The following command:
.CreateHTMLWithImages.ps1 -website http://www.anonit.net/images/2016/1/3/ -sourcepath \web01blogimages201613 -HTMLFile \web01blog20160103.html -YSize 100 -XSize 100
Will produce a HTML file similar to this.