Advertisement
SilverTES

PowerShell : Script Extract File.

Jul 21st, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Chargement de la classe
  2.  
  3. [System.Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") | Out-Null
  4.  
  5. $ZipFile = "P.Zip"
  6.  
  7. $DestFile = "P:\TestPS"
  8.  
  9. [System.IO.Compression.ZipFile]::ExtractToDirectory($ZipFile,$DestFile)
  10.  
  11. cd $DestFile
  12.  
  13. dir
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement