Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. Start-Transcript -Path "C:\Users\f.silvano\Desktop\folderssizemonitoring.txt" -Append
  2. "----------------------"
  3. "----------------------"
  4. "----------------------"
  5. Get-Date -Format "dddd dd/MM/yyyy HH:mm"
  6. "----------------------"
  7. "SFTP Size"
  8. "{0:N2} GB" -f ((Get-ChildItem "C:\Users\f.silvano\Desktop\Test\temp1" -Recurse | Measure-Object -Property Length -Sum -ErrorAction Stop).Sum /1Gb);
  9. "------"
  10.  
  11. "AdapterSFTP Size"
  12. "{0:N2} GB" -f ((Get-ChildItem "C:\Users\f.silvano\Desktop\Test\temp2" -Recurse | Measure-Object -Property Length -Sum -ErrorAction Stop).Sum /1Gb);
  13. "------"
  14.  
  15. "Cifrati Size"
  16. "{0:N2} GB" -f ((Get-ChildItem "C:\Users\f.silvano\Desktop\Test\temp3" -Recurse | Measure-Object -Property Length -Sum -ErrorAction Stop).Sum /1Gb);
  17. "------"
  18. "----------------------"
  19. "----------------------"
  20. "----------------------"
  21. Stop-Transcript
  22.  
  23. #Read-Host -Prompt "Premi un tasto per uscire per uscire"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement