SHARE
TWEET

Untitled

a guest Apr 25th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $sizeArray = @()
  2.  
  3.     foreach ($file in (get-childitem j:\ -recurse -file)){
  4.         $sizeArray += $file.length
  5.     }
  6.     foreach ($file in (get-childitem c:\ -recurse -file)){
  7.         $sizeArray += $file.length
  8.     }
  9.     foreach ($file in (get-childitem \\files\resources -recurse -file)){
  10.         $sizeArray += $file.length
  11.     }
  12.     foreach ($file in (get-childitem \\images.internal.wmi\images -recurse -file)){
  13.         $sizeArray += $file.length
  14.     }
  15.     foreach ($file in (get-childitem p:\ -recurse -file)){
  16.         $sizeArray += $file.length
  17.     }
  18.    
  19.     $sizeArray
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top