![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | RSS homepage Greetings; $a = ([xml](new-object net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.aspx")).rss.channel.item | format-table title,link,pubdate | convertto-html I use the following to create an html page to view my rss feeds. How do I make the link object into an html anchor that goes to the blog? select-object link | convertto-html link? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: RSS homepage Hi Braden, You can generate the anchor with a new calculated property. The problem is convertto-html renders the 'less-than' and 'greater-than' signs HTML Entity (< and > , so replace them and send the output toa file. $a = ([xml](new-object net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.aspx")).rss.channel.item $link = @{n="link";e={"<a href='$($_.link)'>$($_.title)</a>"}} $a | select $link,title,pubdate | convertto-html | % {$_.replace("<","<").replace(">",">")} | set-content .\temp\rss.html --- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Quote: > Greetings; > > $a = ([xml](new-object > net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.as > px")).rss.channel.item | format-table title,link,pubdate | > convertto-html > > I use the following to create an html page to view my rss feeds. How > do I make the link object into an html anchor that goes to the blog? > select-object link | convertto-html link? > |
My System Specs![]() |
| | #3 (permalink) |
| | Re: RSS homepage sweet while I've seen many cool scripts posted by a number of you most of them I have to look at with envy. I don't have MOM, SMS, SQL or any of the dozen or so services running at home but this I can use from the comfort of my notebook; I'm saving this in my repository second thought its probably good I don't them ![]() bob "Shay Levi" wrote: Quote: > > > Hi Braden, > > You can generate the anchor with a new calculated property. The problem is > convertto-html renders the 'less-than' and 'greater-than' > signs HTML Entity (< and >) , so replace them and send the output to > a file. > > > $a = ([xml](new-object net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.aspx")).rss.channel.item > $link = @{n="link";e={"<a href='$($_.link)'>$($_.title)</a>"}} > $a | select $link,title,pubdate | convertto-html | % {$_.replace("<","<").replace(">",">")} > | set-content .\temp\rss.html > > > > > --- > Shay Levi > $cript Fanatic > http://scriptolog.blogspot.com > Quote: > > Greetings; > > > > $a = ([xml](new-object > > net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.as > > px")).rss.channel.item | format-table title,link,pubdate | > > convertto-html > > > > I use the following to create an html page to view my rss feeds. How > > do I make the link object into an html anchor that goes to the blog? > > select-object link | convertto-html link? > > > > |
My System Specs![]() |
| | #4 (permalink) |
| | Re: RSS homepage Thanks bob! btw, the title coulmn is redundant as its available on the $link. --- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Quote: > sweet > > while I've seen many cool scripts posted by a number of you most of > them I have to look at with envy. I don't have MOM, SMS, SQL or any of > the dozen or so services running at home > > but this I can use from the comfort of my notebook; I'm saving this in > my repository > > second thought its probably good I don't them ![]() > > bob > > "Shay Levi" wrote: > Quote: >> Hi Braden, >> >> You can generate the anchor with a new calculated property. The >> problem is >> convertto-html renders the 'less-than' and 'greater-than' >> signs HTML Entity (< and >) , so replace them and send the output to >> a file. >> $a = ([xml](new-object >> net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.a >> spx")).rss.channel.item >> >> $link = @{n="link";e={"<a href='$($_.link)'>$($_.title)</a>"}} >> >> $a | select $link,title,pubdate | convertto-html | % >> {$_.replace("<","<").replace(">",">")} >> >> | set-content .\temp\rss.html >> >> --- >> Shay Levi >> $cript Fanatic >> http://scriptolog.blogspot.com Quote: >>> Greetings; >>> >>> $a = ([xml](new-object >>> net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss. >>> as px")).rss.channel.item | format-table title,link,pubdate | >>> convertto-html >>> >>> I use the following to create an html page to view my rss feeds. How >>> do I make the link object into an html anchor that goes to the blog? >>> select-object link | convertto-html link? >>> |
My System Specs![]() |
| | #5 (permalink) |
| | Re: RSS homepage Thanks for the script, Shay! "Braden C. Roberson-Mailloux" <bray@xxxxxx> wrote in message news:O7utEQYtIHA.3968@xxxxxx Quote: > Greetings; > > $a = ([xml](new-object > net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.aspx")).rss.channel.item > | format-table title,link,pubdate | convertto-html > > I use the following to create an html page to view my rss feeds. How do I > make the link object into an html anchor that goes to the blog? > select-object link | convertto-html link? > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| IE8 won't allow google as homepage, Pls Help | Network & Sharing | |||
| IE8 couldn't find default homepage | Network & Sharing | |||
| Opening Windows Mail to homepage | Vista mail | |||
| Chrome style homepage on IE7 | Vista General | |||
| Re: IE7 tabs not showing homepage | Vista security | |||