Sunday, October 29, 2017

How to Combine two HTML File to single

How to Combine two HTML File to single

          There are some scenarios  where we need to combine multiple html out put single ,How do we do that ...Powers shell have simple command to get this done,lets see who to achieve that



Html File one -> C:\Users\Bijesh\Desktop\HTML-Report1.html

Html Fine Two ->C:\Users\Bijesh\Desktop\HTML-Report.html


Here is the One line Powershell command to combine two Html files ...


(Get-Content "C:\Users\Bijesh\Desktop\HTML-Report1.html") + (Get-Content "C:\Users\Bijesh\Desktop\HTML-Report.html") | Set-Content "C:\Users\Bijesh\Desktop\Combined.html"

Regards
Bijesh

No comments:

Post a Comment