< Back

Remove-ZipFileContent

Fri Jan 10, 2020 5:31 pm

NAME Remove-ZipFileContent



SYNOPSIS

Remove file from archive





SYNTAX

Remove-ZipFileContent [-ArchiveName] <String> [-FileName] <String> [-Key <String>] [<CommonParameters>]





DESCRIPTION

Remove file from archive





PARAMETERS

-ArchiveName <String>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-FileName <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Key <String>



Required? false

Position? named

Default value

Accept pipeline input? false

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



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Remove-ZipFileContent -Archive .\\scripts.7z -File "temp.log"



ls *.7z| Remove-ZipFileContent -File "temp.log"











RELATED LINKS