November 2018
Intermediate to advanced
566 pages
17h 15m
English
Navigate to the directory that contains your lab files, using the Set-Location cmdlet; here is where all the action happens. If you did not specify a custom -Path when running the scripts, it should be ~/random:
# Change this to match ./path/of/your/choice/ from the aforementioned scripts$LabPath = "$HOME/random"$Today = Get-Date $TotalFileSize = 0 $FilesToDelete = Get-ChildItem $LabPath -Recurse -File | Where-Object {[math]::Floor(($Today - $_.LastWriteTime).TotalDays) ...Read now
Unlock full access