Cmdlets for CSV

Build 25.0.9539

SkipHeaderComments Parameter (Connect-CSV Cmdlet)

Specifies whether the provider skips comment rows at the top of a file.

Syntax

Connect-CSV -SkipHeaderComments SwitchParameter

Data Type

bool

Default Value

false

Remarks

When this property is set to true, the cmdlet skips all rows that begin with the # character until it encounters a row that does not.

When set to false, comment rows are included in the dataset as regular rows.

This property is useful for ignoring commented header sections in files that include descriptive text or metadata at the beginning.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9539