Dr Dobbs PowerShell Article

Dr Dobbs PowerShell Article

  • Comments 2

Check out Doug Finke's excellent PowerShell article in Dr Dobbs HERE.

It is exactly the sort of crisp yet meaty content that makes Dr Dobbs so useful.  If you have a Developer friend that hasn't yet caught the PowerShell bug, this would be a great article for them to read.

Jeffrey Snover [MSFT]
Windows Management Partner Architect
Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Leave a Comment
  • Please add 7 and 8 and type the answer here:
  • Post
  • PingBack from http://www.biosensorab.org/2008/02/27/dr-dobbs-powershell-article/

  • Get this error message and being a newbie to PS unable to correct.  This fits my need perfectly.

    Unexpected token 'row' in expression or statement.

    At C:\DOCUME~1\User\LOCALS~1\Temp\Untitled6.ps1:51 char:21

    +                 $columnName $row[ <<<< $columnName]

    Code Snippet:

    function Convert-DSToObject


    param ($dataSet, $tableName)

    if(!$dataSet) { "need a dataset please"; return }

    if(!$tableName) { "need a tablename please"; return}

    $columnNames = $dataSet.Tables[$tableName].Columns

    $dataSet.Tables[$tableName].Rows |foreach


    $row = $_

    $o = New-Object PSObject

    $columnNames | foreach


    $columnName = $_

    $o = $o | Add-Member -PassThru NoteProperty

    $columnName $row[$columnName]





Page 1 of 1 (2 items)