![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | Reading text file and charting them via powergadget I've a simple text file eg results.txt Jan,10 Feb,20 March,30 Assuming i've already created a powergadget template, what is the best way to read the file and out-chart it ? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Reading text file and charting them via powergadget In message <udpDSbaiIHA.5208@xxxxxx>, IT Staff <jkklim@xxxxxx> writes Quote: >I've a simple text file eg results.txt > >Jan,10 >Feb,20 >March,30 > >Assuming i've already created a powergadget template, what is the best way >to read the file and out-chart it ? PS: get-content c:\datafile.txt | out-chart <with all your parameters> -- Thomas Lee doctordns@xxxxxx MVP - Admin Frameworks and Security |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Reading text file and charting them via powergadget IT Staff wrote: Quote: > I've a simple text file eg results.txt > > Jan,10 > Feb,20 > March,30 > > Assuming i've already created a powergadget template, what is the best way > to read the file and out-chart it ? > > > will understand the input: get-content results.txt|select-object @{e={$_.split(',')[0]};n='Month'},@{e={$_.split(',')[1]};n='Total'} Then pipe that to out-chart. Otherwise, you need to add a header to your CSV file, then you can use import-csv to read in the file, and pipe to out-chart. And to call your template file: ....|out-chart -template "location of your .pgt file" Marco -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Reading A Text File | VB Script | |||
| Reading text file at a URL | VB Script | |||
| Reading file names and Searching for text | VB Script | |||
| Reading a text file with StreamReader | .NET General | |||
| Refresh on Reading more than one variable from a Text file | VB Script | |||