![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Custom Delimiters ? Hi I have an query that run against SQL Server and returns a DataSet, I can output the results to a csv file using, $Results.tables[0] | Export-Csv ("c:\test.csv") Some of the columns have dollar amounts e. Jim, money, $1,400 and that is interpreted incorrectly in excel. Is there a way to specify an alternative delimiter like | a pipe, so that it appears as Jim| money| $1,4000 with the $1,400 intact ? Thanks. |
| | #2 (permalink) | ||||||||||||
| Guest | Re: Custom Delimiters ? dm_14 wrote:
which allows for using something other than "," to seperate stuff. So this would work: PSHv2 CTP2> $results.tables[0]|export-csv -delimiter "|" c:\test.csv Willing to try CTP2 on a non-production machine? If not, there should be another method... Marco -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com | ||||||||||||
| | #3 (permalink) | ||||||||||||
| Guest | Re: Custom Delimiters ?
IIS's Microsoft's (local or remote) data parser, Log Parser 2.2 (with built-in Microsoft ChartSpace chart maker) can do what one wants! -o:tsv -oSeparator:"|" PowerShell users use Log Parser just like PowerShell users use IE, ChartSpace, Excel, Word, NetStat.exe or MSBuild.exe or WinRM and so on! Notice: IIS does not need to be running or installed in order to use Log Parser for either data parsing or chart making. Search the Internet (and this newsgroup) for usage of: Microsoft's Log Parser command line usage, or fully script enabled either in COM or .NET (from the IIS group) Remember, ever since PowerShell added HTTP / HTTPS usage (like IIS) Log Parser became PowerShell's data parser (like Log Parser is for IIS) too! | ||||||||||||
| | #4 (permalink) | ||||||||||||||||||||||||
| Guest | Re: Custom Delimiters ? Hi Flowering Weeds, Could you please provide a short working example ? Thanks. "Flowering Weeds" wrote:
| ||||||||||||||||||||||||
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Word Delimiters or Separators. Where defined? | SteveL | Vista General | 4 | 04-13-2008 07:53 AM |
| types.custom.ps1xml for custom members | hasten | PowerShell | 0 | 02-25-2008 08:30 PM |
| Custom WDS Rules | Tim Haughton | Vista file management | 0 | 12-23-2007 02:00 AM |
| Using Custom Command in EID | viRtual | Avalon | 0 | 08-01-2006 03:13 AM |
| Custom Dependency Property in custom class hierarchy not workingcorrectly?! | MueMeister | Avalon | 0 | 03-02-2006 06:19 PM |