< Back
New-ZipFile
Post
NAME New-ZipFile
SYNOPSIS
Create a new 7zip archive
SYNTAX
New-ZipFile [<CommonParameters>]
New-ZipFile [-ArchiveName] <String> [-FSFiles] <FileSystemInfo[]> [[-Key] <String>] [[-Compression] {Store |
Fastest | Fast | Normal | Maximum | Ultra}] [[-UpdateMode] {Add | Update | Freshen | Sync}] [[-SplitSize]
<String[]>] [[-SplitSizeFactor] {Byte | Kilobyte | Megabyte | Gigabytes}] [<CommonParameters>]
New-ZipFile [-ArchiveName] <String> [-FileNames] <String[]> [[-Key] <String>] [[-Compression] {Store | Fastest |
Fast | Normal | Maximum | Ultra}] [[-UpdateMode] {Add | Update | Freshen | Sync}] [[-SplitSize] <String[]>]
[[-SplitSizeFactor] {Byte | Kilobyte | Megabyte | Gigabytes}] [<CommonParameters>]
DESCRIPTION
Create a new 7zip archive
PARAMETERS
-ArchiveName <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-FileNames <String[]>
Files fo add to archive
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-FSFiles <FileSystemInfo[]>
Powershell files (from pipeline) to add
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Key <String>
Required? false
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Compression
Compression Level {Store, Fastest, Fast, Normal, Maximum, Ultra}
Required? false
Position? 3
Default value Normal
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-UpdateMode
Files Update Mode {Add, Update, Freshen, Sync}
Required? false
Position? 6
Default value Add
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-SplitSize <String[]>
Volume sizes
Required? false
Position? 7
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-SplitSizeFactor
Volume size factor {Byte, Kilobyte, Megabyte, Gigabytes}
Required? false
Position? 8
Default value Megabyte
Accept pipeline input? true (ByPropertyName)
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
NOTES
General notes
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>ls -Exclude .git | New-ZipFile "scripts"
New-ZipFile -Compression Ultra -FileNames .\\\\index.rst,.\\\\README.md -Password qwe123 -SplitSize 1,2,3,4,20
-SplitSizeFactor Megabyte
RELATED LINKS
SYNOPSIS
Create a new 7zip archive
SYNTAX
New-ZipFile [<CommonParameters>]
New-ZipFile [-ArchiveName] <String> [-FSFiles] <FileSystemInfo[]> [[-Key] <String>] [[-Compression] {Store |
Fastest | Fast | Normal | Maximum | Ultra}] [[-UpdateMode] {Add | Update | Freshen | Sync}] [[-SplitSize]
<String[]>] [[-SplitSizeFactor] {Byte | Kilobyte | Megabyte | Gigabytes}] [<CommonParameters>]
New-ZipFile [-ArchiveName] <String> [-FileNames] <String[]> [[-Key] <String>] [[-Compression] {Store | Fastest |
Fast | Normal | Maximum | Ultra}] [[-UpdateMode] {Add | Update | Freshen | Sync}] [[-SplitSize] <String[]>]
[[-SplitSizeFactor] {Byte | Kilobyte | Megabyte | Gigabytes}] [<CommonParameters>]
DESCRIPTION
Create a new 7zip archive
PARAMETERS
-ArchiveName <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-FileNames <String[]>
Files fo add to archive
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-FSFiles <FileSystemInfo[]>
Powershell files (from pipeline) to add
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Key <String>
Required? false
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Compression
Compression Level {Store, Fastest, Fast, Normal, Maximum, Ultra}
Required? false
Position? 3
Default value Normal
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-UpdateMode
Files Update Mode {Add, Update, Freshen, Sync}
Required? false
Position? 6
Default value Add
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-SplitSize <String[]>
Volume sizes
Required? false
Position? 7
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-SplitSizeFactor
Volume size factor {Byte, Kilobyte, Megabyte, Gigabytes}
Required? false
Position? 8
Default value Megabyte
Accept pipeline input? true (ByPropertyName)
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
NOTES
General notes
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>ls -Exclude .git | New-ZipFile "scripts"
New-ZipFile -Compression Ultra -FileNames .\\\\index.rst,.\\\\README.md -Password qwe123 -SplitSize 1,2,3,4,20
-SplitSizeFactor Megabyte
RELATED LINKS