This the the template from my system so I can't modify anything here. Basically I want to split into multiple files based on the value on column 3 "Comment".
DeliveryType;ShippingDate;Comment;SellerSku;Requested send;05/29/16 03:10 PM;HCM - VN101YK- MK1001;EX110OTBCE8QV;3 send;05/29/16 03:1PM;HN - VN101YK;EX110OTBCE8XHY;1
I've tried this code & changed the file name/folder but it doesn't respond to anything.
Import-Csv test.csv | Group-Object -Property "Comment" | ForEach-Object {
$path = $_.Name + ".csv";
$_.Group | Export-Csv -Path $path -NoTypeInformation
}