Skip to content

Instantly share code, notes, and snippets.

@danferns
Created May 26, 2023 11:56
Show Gist options
  • Select an option

  • Save danferns/66e41f0708a0ac641ff79a1bb6414692 to your computer and use it in GitHub Desktop.

Select an option

Save danferns/66e41f0708a0ac641ff79a1bb6414692 to your computer and use it in GitHub Desktop.
A workaround to download Dropbox folders that are too large.
$dropboxLinks = Get-Content -Path .\dropboxlinks.json | ConvertFrom-Json
foreach ($entry in $dropboxLinks.PSObject.Properties) {
$fileName = $entry.Name
$downloadUrl = $entry.Value -replace '0$', '1'
Invoke-WebRequest -Uri $downloadUrl -OutFile $fileName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment