Powershell - Export-CSV and Append

后端 未结 4 704
心在旅途
心在旅途 2020-12-11 16:36

I have a script such as the following:

$in_file = \"C:\\Data\\Need-Info.csv\"
$out_file = \"C:\\Data\\Need-Info_Updated.csv\"
$list = Import-Csv $in_file 
Fo         


        
4条回答
  •  臣服心动
    2020-12-11 17:13

    -append is broken in Powershell v2.0 Use Dmitry Sotikovs workaound: http://dmitrysotnikov.wordpress.com/2010/01/19/export-csv-append/

    I would however recommend manojlds excellent solution!

提交回复
热议问题