Skip to content

Instantly share code, notes, and snippets.

Created December 7, 2016 01:58
What would you like to do?
#region Dropbox path
$dropboxDBfile = Get-ChildItem -Path $env:USERPROFILE\AppData\Local -Recurse -ErrorAction SilentlyContinue | ? {$_.Name -eq 'host.db'}
$base64path = gc $dropboxDBfile.FullName | select -index 1 # -index 1 is the 2nd line in the file
$dropboxPath = [System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($base64path)) # convert from base64 to ascii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment