< Back

DataEncode-CSVDecode

Mon Jan 13, 2020 8:48 am

NAME DataEncode-CSVDecode



SYNOPSIS

Used to Decode content that has been encoded by the DataEncode-CSVEncode command.





SYNTAX

DataEncode-CSVDecode [-CSVFile] <> [<CommonParameters>]





DESCRIPTION







PARAMETERS

-CSVFile <>

Full Path to the CSV file(s) to be processed.



Required? true

Position? 0

Default value

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



1) Single File Processing



Single File Processing ExampleC:\\PS> DataEncode-CSVDecode -CSVFile C:\\TempFolder\\Data.csv



File will be output as filename + .Decoded - Maintaining original file.

2) Multi File Processing



Multi File Processing Example 1C:\\PS> DataEncode-CSVDecode -CSVFile File1.csv,File2.csv,File3.csv



File will be output as filename + .Decoded - Maintaining original file.

3) Multi File Processing (Variables)



Multi File Processing Example 2C:\\PS> $AllFiles = FileName1.csv, $FileName2.csv, $FileName3.csv

C:\\PS> DataEncode-CSVDecode -CSVFile $AllFiles



File will be output as filename + .Decoded - Maintaining original file.

4) Pipeline Processing (Single Items)



Command can be used with PipelinesC:\\PS> FileName.csv | DataEncode-CSVDecode



File will be output as filename + .Decoded - Maintaining original file.

5) Pipeline Processing (Multiple Items)



Command can be used with PipelinesC:\\PS> FileName1.csv,Filename2,FileName3 | DataEncode-CSVDecode



File will be output as filename + .Decoded - Maintaining original file.

6 Pipeline Processing (Variable Items)



Command can be used with PipelinesC:\\PS> $AllFiles = FileName1.csv, $FileName2.csv, $FileName3.csv

C:\\PS> $AllFiles | DataEncode-CSVDecode



File will be output as filename + .Decoded - Maintaining original file.



RELATED LINKS