Compress folders into zip files.
Compress-Folders [-SourceFolder] <String> [-DestinationFolder] <String> [-Force] [<CommonParameters>]
Use the Compress-Folders
cmdlet to compress folders found in the source folder
into zip files that are written to the destination folder.
Compress-Folders -SourceFolder 'C:\ProgramData\Transend\detached' -DestinationFolder 'C:\Temp'
Compresses all folders in C:\ProgramData\Transend\detached
into zip files that
are written to C:\Temp
.
The path of a folder into which zip files will be written.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Overwrites files in the destination if they already exist.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The path of a folder in which subfolders will be compressed.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.