cd-dropbox
Sets the working directory to the user's Dropbox folder
#requires -version 5.1
try {
if (-not(Test-Path "~/Dropbox" -pathType container)) {
throw "No 'Dropbox' folder in your home directory - Please install Dropbox."
}
$path = Resolve-Path "~/Dropbox"
Set-Location "$path"
$files = Get-ChildItem $path -attributes !Directory
$folders = Get-ChildItem $path -attributes Directory
"📂$path entered (has $($files.Count) files and $($folders.Count) folders)"
exit 0
} catch {
throw
}This script has no configurable parameters.