![]() zip extension to the file name automatically.Įdit two - This code is an ugly, ugly kluge from olden days. Compress-Archive -Path C:\Reference\* -CompressionLevel Fastest -DestinationPath C:\Archives\DraftĬommand creates an archive from an entire folder, C:\Reference Compress-Archive -Path C:\Reference -DestinationPath C:\Archives\Draft The new archive file contains every file in the C:\Reference folder, because a wildcard character was used in place of specific file names in the Path parameter. vsd' -CompressionLevel Optimal -DestinationPath C:\Archives\Draft.ZipĬommand to create new archive file, Draft.zip, in the C:\Archives folder. Compress-Archive -LiteralPath 'C:\Reference\Draft Doc.docx', 'C:\Reference\Images\Diagram. The compression level specified for this operation is Optimal. vsd, specified by the LiteralPath parameter. ![]() Compress-Archive -Path C:\Reference\Draftdoc.docx, C:\Reference\Images\diagram2.vsd -CompressionLevel Optimal -DestinationPath C:\Archives\Draft.ZipĬommand to creates new archive file, Draft.zip, by compressing two files, Draft doc.docx and Diagram. ![]() Here are some of the latest examples using Compress-Archive command.Ĭommand to create new archive file, Draft.zip, by compressing two files, Draftdoc.docx and diagram2.vsd, specified by the Path parameter. Lot has changed since the initial answer was posted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |