IGSFX Posted February 1, 2007 Report Share Posted February 1, 2007 - Create a script called ImportCsvWeb.ps1 with the following $url = $args[0]$tempFile = [system.IO.Path]::GetTempFileName()$webClient = new-object System.Net.WebClient$webClient.DownloadFile($url,$tempFile)$data = import-csv $tempFile[system.IO.File]::Delete($tempFile)$data - Invoke it in a powershell session (or script) as follows .\importcsvweb.ps1 "http://<your csv file URL>" | out-chart -values <ValueColumns> -label <LabelColumn> Note that in this case we let ImportCsvWeb to return the data without any "casting" to allow reuse of this script with multiple CSV files. You tell the out-chart cmdlet which fields should be plotted through the -values parameter (which must contain only numbers) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.