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) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.