Logo

Documentation home for Transend tools

Compress-Folders

SYNOPSIS

Compress folders into zip files.

SYNTAX

Compress-Folders [-SourceFolder] <String> [-DestinationFolder] <String> [-Force] [<CommonParameters>]

DESCRIPTION

Use the Compress-Folders cmdlet to compress folders found in the source folder into zip files that are written to the destination folder.

EXAMPLES

Example

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.

PARAMETERS

-DestinationFolder

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

-Force

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

-SourceFolder

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Void

NOTES

TMCTools configuration options