Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Start-Transcript -Path "C:\Users\f.silvano\Desktop\folderssizemonitoring.txt" -Append
- "----------------------"
- "----------------------"
- "----------------------"
- Get-Date -Format "dddd dd/MM/yyyy HH:mm"
- "----------------------"
- "SFTP Size"
- "{0:N2} GB" -f ((Get-ChildItem "C:\Users\f.silvano\Desktop\Test\temp1" -Recurse | Measure-Object -Property Length -Sum -ErrorAction Stop).Sum /1Gb);
- "------"
- "AdapterSFTP Size"
- "{0:N2} GB" -f ((Get-ChildItem "C:\Users\f.silvano\Desktop\Test\temp2" -Recurse | Measure-Object -Property Length -Sum -ErrorAction Stop).Sum /1Gb);
- "------"
- "Cifrati Size"
- "{0:N2} GB" -f ((Get-ChildItem "C:\Users\f.silvano\Desktop\Test\temp3" -Recurse | Measure-Object -Property Length -Sum -ErrorAction Stop).Sum /1Gb);
- "------"
- "----------------------"
- "----------------------"
- "----------------------"
- Stop-Transcript
- #Read-Host -Prompt "Premi un tasto per uscire per uscire"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement