Telegram- 👇 😉
-
. WIKIMERIONET
Merion Mertics , ,

CRM

5

ZIP , . , . PowerShell.

       PowerShell

PowerShell

ZIP- Compress-Archive. , - - .

PowerShell, , , PathToFiles PathToDestination , , , , :

Compress-Archive -LiteralPath <PathToFiles> -DestinationPath <PathToDestination>
Compress-Archive -LiteralPath <PathToFiles> -DestinationPath <PathToDestination>

, , PowerShell .zip.

. , .

, , , PathToFolder PathToDestination , , , . :

Compress-Archive -LiteralPath <PathToFolder> -DestinationPath <PathToDestination>
Compress-Archive -LiteralPath <PathToFolder> -DestinationPath <PathToDestination>

. PowerShell , .

Compress-Archive (*) . , . Compress-Archive, -Path, -LiteralPath .

, . , Zip-, , . (*) , PowerShell , . :

Compress-Archive -Path C:\path\to\file\* -DestinationPath C:\path\to\archive.zip
Compress-Archive -Path C:\path\to\file\* -DestinationPath C:\path\to\archive.zip

, , (.doc, .txt, .jpg ), . PowerShell , . :

Compress-Archive -Path C:\path\to\file\*.jpg -DestinationPath C:\path\to\archive.zip
Compress-Archive -Path C:\path\to\file\*.jpg -DestinationPath C:\path\to\archive.zip
. .

, , , -- (*. *) . :

Compress-Archive -Path C:\path\to\file\*.* -DestinationPath C:\path\to\archive.zip
Compress-Archive -Path C:\path\to\file\*.* -DestinationPath C:\path\to\archive.zip
. .

-Update. , . :

Compress-Archive -Path C:\path\to\files -Update -DestinationPath C:\path\to\archive.zip
Compress-Archive -Path C:\path\to\files -Update -DestinationPath C:\path\to\archive.zip

PowerShell

, PowerShell . , ; , , , .

PowerShell , PathToZipFile PathToDestination , , , , :

Expand-Archive -LiteralPath <PathToZipFile> -DestinationPath <PathToDestination>
Expand-Archive -LiteralPath <PathToZipFile> -DestinationPath <PathToDestination>

, , . , PowerShell .

, -DestinationPath, PowerShell Zip .

, -DestinationPath, PowerShell C:\Users\user .

C:\Users\user

, PowerShell . PowerShell , -Force.

-Force , , .